Update of /cvsroot/ufraw/ufraw
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv17444

Modified Files:
        ufraw_writer.c 
Log Message:
Fix buffer overflow when rotating.


Index: ufraw_writer.c
===================================================================
RCS file: /cvsroot/ufraw/ufraw/ufraw_writer.c,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- ufraw_writer.c      1 Sep 2009 15:08:07 -0000       1.61
+++ ufraw_writer.c      25 Sep 2009 18:55:32 -0000      1.62
@@ -211,7 +211,7 @@
     int rowStride = uf->image.width;
     image_type *rawImage = uf->image.image;
     int byteDepth = (bitDepth+7)/8;
-    guint8 pixbuf8[rowStride * 3 * byteDepth * DEVELOP_BATCH];
+    guint8 pixbuf8[width * 3 * byteDepth * DEVELOP_BATCH];
 
     if (uf->conf->rotationAngle != 0) {
        // Buffer for unrotated image.


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
ufraw-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ufraw-cvs

Reply via email to