Skip to content

Commit 3ce5407

Browse files
sdlimegithub-actions[bot]
authored andcommitted
Make sure a POINT block doesn't contain too many points.
1 parent 970df6c commit 3ce5407

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mapsymbol.c

+4
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,10 @@ int loadSymbol(symbolObj *s, char *symbolpath)
249249
done = MS_TRUE;
250250
break;
251251
case(MS_NUMBER):
252+
if(s->numpoints == MS_MAXVECTORPOINTS) {
253+
msSetError(MS_SYMERR, "POINT block contains too many points.", "loadSymbol()");
254+
return(-1);
255+
}
252256
s->points[s->numpoints].x = atof(msyystring_buffer); /* grab the x */
253257
if(getDouble(&(s->points[s->numpoints].y)) == -1) return(-1); /* grab the y */
254258
if(s->points[s->numpoints].x!=-99) {

0 commit comments

Comments
 (0)