artemp/mapnik — Issue #761: avoid possibility of divide by zero in agg::gamma_linear
Author: artemp
Created: 2011-10-11 16:35:40+00:00
State: open
Labels: Core_Library

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.

http://comments.gmane.org/gmane.comp.graphics.agg/3377