xorg-libxcursor/src
Jeremy Huddleston 047993c76a Correct error handling in _XcursorAverageColor
Previously it would either div-zero or get stuck in a loop until int overflow
if called with a bad value.

cursor.c:214:32: warning: Division by zero
    return (0xff << 24) | ((red/npixels) << 16) | ((green/npixels) << 8) | (blue/npixels);

Found-by: clang static analyzer
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-05-07 10:16:18 -07:00
..
cursor.c Correct error handling in _XcursorAverageColor 2011-05-07 10:16:18 -07:00
display.c Free list on shutdown. 2011-04-01 12:16:56 +01:00
file.c Free the partial header after failing to open the cursor. 2011-04-01 12:16:56 +01:00
library.c Janitor: make distcheck, compiler warnings, extra .gitignore files. 2009-01-29 15:34:11 -02:00
Makefile.am config: move CWARNFLAGS from configure.ac to Makefile.am 2010-02-16 10:37:21 -05:00
xcursorint.h nuke RCS Ids 2008-03-09 00:34:36 +01:00
xlib.c Free the FontInfo structure after loading the cursor from it. 2011-04-01 12:16:56 +01:00