Commit f04b349f authored by Committed by Alan Coopersmith
Fix null pointer dereference on very large images.
If xcursorgen encounters a PNG file which is larger than 32767 pixels in width or height, a null pointer dereference occurs because the return value of XcursorImageCreate is not checked. The largest possible value is 32767 for libXcursor, which is a hard coded limit due to a 16 bit integer used (0x7FFF). Fixes: #1Signed-off-by: Tobias Stoeckmann <email@example.com> Reviewed-by: Alan Coopersmith <firstname.lastname@example.org> Signed-off-by: Alan Coopersmith <email@example.com>
Showing with 6 additions and 0 deletions