Opened 20 years ago

Closed 20 years ago

#995 closed defect (fixed)

segfault in colorObj::toHex() for invalid colors

Reported by: sgillies@… Owned by: sgillies@…
Priority: high Milestone: 4.4 release
Component: MapScript-SWIG Version: 4.3
Severity: normal Keywords:
Cc:

Description

in the case of a (-1,-1,-1) color, set an error and return before calculating
the hex value.

Change History (2)

comment:1 by sgillies@…, 20 years ago

Milestone: 4.4 release
Status: newassigned
write test, change color.i and perhaps mapprimitive.c

comment:2 by sgillies@…, 20 years ago

Resolution: fixed
Status: assignedclosed
fixed.  sets an MS_MISCERR and returns NULL in the undefined color case.

Note: See TracTickets for help on using tickets.