summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/meson.build
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@stoeckmann.org>2020-06-07 19:41:27 +0200
committerEmmanuele Bassi <ebassi@gmail.com>2020-06-26 10:10:53 +0000
commit7ebedf37abfed653a5b6dcf4d9210270c3e99e46 (patch)
treeb75fce50273ff348ee1e47d66fcd5a52a8578f13 /gdk-pixbuf/meson.build
parent3756f7b4a1d8d0f53f52d09dd50288582c4a79b6 (diff)
downloadgdk-pixbuf-7ebedf37abfed653a5b6dcf4d9210270c3e99e46.tar.gz
XBM: Fix signed integer overflow.
Parsing an XBM file with pixel bits larger than int leads to undefined behavior (signed integer overflow). Since only the lowest 8 bits are used, this patched code produces the same images as before. Also do not increment gotone but set it to a value. If more than INT_MAX values are parsed, this int would overflow as well. Proof of Concept (compile with -fsanitize=undefined or -ftrapv): static unsigned char poc_bits[] = { 0xFFFFFFFF };
Diffstat (limited to 'gdk-pixbuf/meson.build')
0 files changed, 0 insertions, 0 deletions