• R/O
  • SSH

wp2latex: Commit

WP2LaTeX sources.


Commit MetaInfo

Revisionff69fcbcc9ba5173a28082633a0591f64f3acd4f (tree)
Zeit2022-05-01 03:12:43
AutorFojtik
CommiterFojtik

Log Message

Critical problem, variable 'i' is not a right index, might run out of boundaries.

Ändern Zusammenfassung

Diff

diff -r 77a043a35bcc -r ff69fcbcc9ba trunk/sources.cc/pass1wmf.cc
--- a/trunk/sources.cc/pass1wmf.cc Sat Apr 30 10:23:38 2022 +0200
+++ b/trunk/sources.cc/pass1wmf.cc Sat Apr 30 20:12:43 2022 +0200
@@ -1314,7 +1314,7 @@
13141314 }
13151315
13161316 const float Scale = GetScale2PSU((TMapMode)MapMode);
1317- for(i=0; i<PolyCount;i++)
1317+ for(i=0; i<PolyCount; i++)
13181318 {
13191319 if(PolySizes[i]<=0) continue;
13201320 //if(PolySize > (WmfRec.Size - 3 - 1)/2)
@@ -1325,7 +1325,7 @@
13251325
13261326 for(int j=0; j<2*PolySizes[i]; j++)
13271327 {
1328- Points[i] *= Scale; // scale both x & y
1328+ Points[j] *= Scale; // scale both x & y
13291329 }
13301330 VectorPolygon *pVecPoly = new VectorPolygon(Points, PolySizes[i]);
13311331 Points = NULL;
Show on old repository browser