mapnik-org/mapnik — Issue #759: avoid possibility of divide by zero in agg::gamma_linear
Author: artemp
Created: 2011-10-11 08:11:11+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