Skip to content
Commit 71e3b4a4 authored by Philip Withnall's avatar Philip Withnall 🚫
Browse files

gdk-pixbuf-io: Add precondition checks for image dimensions

Refuse to save an invalid GdkPixbuf: one which has negative width,
height or number of channels.

This allows us to put assertions for all those properties in the I/O
code, which helps static analysis not go off on one because it thinks
the image width could be negative.

Coverity ID: 1388534

https://bugzilla.gnome.org/show_bug.cgi?id=777374
parent 3dacbb48
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment