Ticket #995 (closed defect: fixed)

Opened 9 years ago

Last modified 9 years ago

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

Changed 9 years ago by sgillies@…

  • status changed from new to assigned
  • milestone set to 4.4 release
write test, change color.i and perhaps mapprimitive.c

Changed 9 years ago by sgillies@…

  • status changed from assigned to closed
  • resolution set to fixed
fixed.  sets an MS_MISCERR and returns NULL in the undefined color case.

Note: See TracTickets for help on using tickets.