#1725 closed defect (fixed)
msDrawMarkerSymbolGD isn't initializing some variables causing gd to blow up
Reported by: | hobu | Owned by: | sdlime |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | MapServer C Library | Version: | 4.8 |
Severity: | critical | Keywords: | |
Cc: | jmckenna@… |
Description
line 1763: gdImageCopyResampled(img, symbol->img, offset_x, offset_y, 0, 0, (int)(symbol->img->sx*d), (int)(symbol->img->sy*d), symbol->img->sx, symbol->img->sy); offset_x, offset_y, (int)(symbol->img->sx*d), and (int)(symbol->img->sy*d) aren't initialized. This is the PIXMAP case. This causes gd to go in an infinite loop. Exists in both 4.8.2 and CVS HEAD. This is no good.
Change History (4)
comment:2 by , 18 years ago
Status: | new → assigned |
---|
I think the problem may be that symbol->sizey/symbol->sizex are not being set which are giving us some goofy-ass values for the scaling factor d and then offset_x and offset_y in the marker drawing code. This was an issue with a couple of other pieces of code recently (in fact was the problem I faced before fishing). If this is the case then the change is in mapsymbol.c (should check maplegend.c too since they are very similar in implementation). I'll check on it... Steve
comment:3 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed in CVS HEAD and the 4.8 branch... Steve
comment:4 by , 18 years ago
Cc: | added |
---|
Note:
See TracTickets
for help on using tickets.