mirror of
https://gitlab.freedesktop.org/xorg/lib/libxcursor.git
synced 2026-05-09 14:08:02 +02:00
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>
|
||
|---|---|---|
| .. | ||
| cursor.c | ||
| display.c | ||
| file.c | ||
| library.c | ||
| Makefile.am | ||
| xcursorint.h | ||
| xlib.c | ||