[gdal-dev] [PATCH] Postgisraster: fix array overflow

Andreas Schwab schwab at linux-m68k.org
Fri Jun 8 12:02:15 PDT 2012


Index: frmts/postgisraster/postgisrasterdataset.cpp
===================================================================
--- frmts/postgisraster/postgisrasterdataset.cpp	(revision 24546)
+++ frmts/postgisraster/postgisrasterdataset.cpp	(working copy)
@@ -1014,8 +1014,8 @@ CPLErr PostGISRasterDataset::IRasterIO(G
     PostGISRasterRasterBand * poBand = NULL;
     GByte * pabySrcBlock = NULL;
     int nBlocksPerRow, nBlocksPerColumn;
-    char orderByY[4];
-    char orderByX[3];
+    char orderByY[5];
+    char orderByX[4];
 
 
     /**

Andreas.

-- 
Andreas Schwab, schwab at linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the gdal-dev mailing list