Opened 10 years ago

Closed 10 years ago

#3524 closed defect (fixed)

Error message tiles on zero-sized map cause memory allocation errors in maperror.c. (SIGFPE - Segfault)

Reported by: relet Owned by: sdlime
Priority: normal Milestone:
Component: MapServer C Library Version: 5.6
Severity: minor Keywords:


gdImageColorAllocate fails when image size (any of the two dimensions) is zero.

Patch appended.

Attachments (1)

errorimage-allocation-fix.patch (550 bytes) - added by relet 10 years ago.

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by relet

comment:1 Changed 10 years ago by sdlime

Cc: tbonfort added

I'll take care of 5.6, not sure if this impacts 6.0 too... Steve

comment:2 Changed 10 years ago by sdlime

Cc: tbonfort removed

comment:3 Changed 10 years ago by sdlime

Resolution: fixed
Status: newclosed

Fixed in 5.6 branch (r10483) and trunk (r10484). I changed the patch a touch not to return, but use the default height/width set at the top of the function. Closing.

Thanks for the patch!


Note: See TracTickets for help on using tickets.