pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] r2575 - trunk/src


From: jave27
Subject: [Pingus-CVS] r2575 - trunk/src
Date: Thu, 5 Jan 2006 18:40:30 +0100

Author: jave27
Date: 2006-01-05 18:40:05 +0100 (Thu, 05 Jan 2006)
New Revision: 2575

Modified:
   trunk/src/blitter_impl.hxx
Log:
Fixed heap overflow issue when applying a ROT### modifier to an 8-bit grayscale 
png.

Modified: trunk/src/blitter_impl.hxx
===================================================================
--- trunk/src/blitter_impl.hxx  2006-01-03 21:52:59 UTC (rev 2574)
+++ trunk/src/blitter_impl.hxx  2006-01-05 17:40:05 UTC (rev 2575)
@@ -215,14 +215,14 @@
     }
   else
     {
-      CL_PixelBuffer canvas(prov.get_height(), prov.get_width(), 
prov.get_width()*4, CL_PixelFormat::rgba8888);
+      int pwidth  = prov.get_width();
+      int pheight = prov.get_height();
+                       
+                       CL_PixelBuffer canvas(prov.get_height(), pwidth, 
pheight*4, CL_PixelFormat::rgba8888);
 
       prov.lock();
       canvas.lock();
 
-      int pwidth  = prov.get_width();
-      int pheight = prov.get_height();
-      
       for (int y = 0; y < pheight; ++y)
         for (int x = 0; x < pwidth; ++x)
           {





reply via email to

[Prev in Thread] Current Thread [Next in Thread]