From c4b8047d7ef9b59bd5ed458d803c33027547e1ae Mon Sep 17 00:00:00 2001 From: espie Date: Tue, 4 Mar 2003 18:06:59 +0000 Subject: [PATCH] backport buffer overrun fix from qt 3.1.2. ok pval@ --- x11/qt3/patches/patch-src_kernel_qjpegio_cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 x11/qt3/patches/patch-src_kernel_qjpegio_cpp diff --git a/x11/qt3/patches/patch-src_kernel_qjpegio_cpp b/x11/qt3/patches/patch-src_kernel_qjpegio_cpp new file mode 100644 index 00000000000..021c1a7a7e2 --- /dev/null +++ b/x11/qt3/patches/patch-src_kernel_qjpegio_cpp @@ -0,0 +1,12 @@ +$OpenBSD: patch-src_kernel_qjpegio_cpp,v 1.1 2003/03/04 18:06:59 espie Exp $ +--- src/kernel/qjpegio.cpp.orig Tue Mar 4 19:00:44 2003 ++++ src/kernel/qjpegio.cpp Tue Mar 4 19:02:09 2003 +@@ -235,7 +235,7 @@ void read_jpeg_image(QImageIO* iio) + + + } else if ( params.contains( "Scale" ) ) { +- sscanf( params.latin1(), "Scale( %i, %i, %s )", &sWidth, &sHeight, sModeStr ); ++ sscanf( params.latin1(), "Scale( %i, %i, %1023s )", &sWidth, &sHeight, sModeStr ); + + QString sModeQStr( sModeStr ); + if ( sModeQStr == "ScaleFree" ) {