WP2LaTeX sources.
Revisão | ff69fcbcc9ba5173a28082633a0591f64f3acd4f (tree) |
---|---|
Hora | 2022-05-01 03:12:43 |
Autor | Fojtik |
Commiter | Fojtik |
Critical problem, variable 'i' is not a right index, might run out of boundaries.
@@ -1314,7 +1314,7 @@ | ||
1314 | 1314 | } |
1315 | 1315 | |
1316 | 1316 | const float Scale = GetScale2PSU((TMapMode)MapMode); |
1317 | - for(i=0; i<PolyCount;i++) | |
1317 | + for(i=0; i<PolyCount; i++) | |
1318 | 1318 | { |
1319 | 1319 | if(PolySizes[i]<=0) continue; |
1320 | 1320 | //if(PolySize > (WmfRec.Size - 3 - 1)/2) |
@@ -1325,7 +1325,7 @@ | ||
1325 | 1325 | |
1326 | 1326 | for(int j=0; j<2*PolySizes[i]; j++) |
1327 | 1327 | { |
1328 | - Points[i] *= Scale; // scale both x & y | |
1328 | + Points[j] *= Scale; // scale both x & y | |
1329 | 1329 | } |
1330 | 1330 | VectorPolygon *pVecPoly = new VectorPolygon(Points, PolySizes[i]); |
1331 | 1331 | Points = NULL; |