Opened 14 years ago

Closed 14 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:
Cc:

Description

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 14 years ago.

Download all attachments as: .zip

Change History (4)

by relet, 14 years ago

comment:1 by sdlime, 14 years ago

Cc: tbonfort added

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

comment:2 by sdlime, 14 years ago

Cc: tbonfort removed

comment:3 by sdlime, 14 years ago

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!

Steve

Note: See TracTickets for help on using tickets.