[mapserver-dev] Division by zero problem in mapserver

Tamas Szekeres szekerest at gmail.com
Sat Feb 14 19:24:19 EST 2009


Hi Devs,

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.
How about setting the symbol size to 1 instead of 0 in initSymbol to prevent
from this problem?

Best regards,

Tamas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20090215/18dd581e/attachment.html


More information about the mapserver-dev mailing list