artemp/trac2github — Issue #762: avoid possibility of divide by zero in agg::gamma_linear
Author: artemp
Created: 2011-10-09 20:50: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