Skip to content
Commit 99508c71 authored by Bastien Nocera's avatar Bastien Nocera
Browse files

ico: Avoid possible ImageScore overflow

Seeing as this is only a comparison, don't try to do arithmetics that
could overflow.

Detected by UBSan:
io-ico.c:204:9: runtime error: signed integer overflow: 2134193699 -
-555819298 cannot be represented in type 'int'

https://bugzilla.gnome.org/show_bug.cgi?id=776040
parent 925eac56
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