avoid possibility of divide by zero in agg::gamma_linear #761

artemp opened this Issue Oct 11, 2011 · 1 comment


None yet

2 participants

Mapnik member

if the user passes in gamma=0.0 an illegal instruction is possible at http://trac.mapnik.org/browser/trunk/agg/include/agg_gamma_functions.h#L88.

we should potentially clamp user input or move to a different gamma function/gamma_none.


Mapnik member

pushing to 2.1.x

@PetrDlouhy PetrDlouhy added a commit to PetrDlouhy/mapnik that referenced this issue Aug 22, 2013
@springmeyer springmeyer avoid potential zero division resulting in nan in agg::gamma_linear -…
… closes #761
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment