Ticket #2896 (closed defect: fixed)
Division by zero problem in mapserver
| Reported by: | tamas | Owned by: | tamas |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.6 release |
| Component: | MapServer C Library | Version: | unspecified |
| Severity: | normal | Keywords: | |
| Cc: | tbonfort, sdlime, dmorissette, havatv |
Description
I find in many places in the code the following fragment:
scale = size/symbol->sizey;
without actually checking the value of symbol->sizey which may be zero eventually. This causes me unexpected problems, like for example a premature termination of the application during the pdf output.
I suggest to fix this problem by setting symbol->sizex and symbol->sizey to 1 instead of 0 by default
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

