Opened 15 years ago
Closed 15 years ago
#2973 closed defect (fixed)
MS 5.2.2 seg faults if font not found with label ANGLE FOLLOW
Reported by: | dmorissette | Owned by: | dmorissette |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | MapServer C Library | Version: | 5.2 |
Severity: | normal | Keywords: | |
Cc: |
Description
With MapServer 5.2.2, if a font used with label ANGLE FOLLOW is not found then you'll get a segmentation fault.
Note:
See TracTickets
for help on using tickets.
Fixed in branch-5.2 r8892 (just in case, even if we do not plan any more 5.2 releases).
The problem was that when msGetLabelSizeEx() fails it returns -1 but we were testing for MS_FAILURE instead of -1. The font not found error was not caught and this resulted in invalid accesses to the NULL offsets pointer further down in the function.