backport buffer overrun fix from qt 3.1.2.

ok pval@
This commit is contained in:
espie 2003-03-04 18:06:59 +00:00
parent e4bb690c8f
commit c4b8047d7e

View File

@ -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" ) {