backport buffer overrun fix from qt 3.1.2.
ok pval@
This commit is contained in:
parent
e4bb690c8f
commit
c4b8047d7e
12
x11/qt3/patches/patch-src_kernel_qjpegio_cpp
Normal file
12
x11/qt3/patches/patch-src_kernel_qjpegio_cpp
Normal 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" ) {
|
Loading…
Reference in New Issue
Block a user