diff options
author | Bert Pauline <bert.pauline@fake-box.com> | 2018-04-28 10:22:00 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2018-04-29 17:43:38 +0100 |
commit | 979a87b9bcf40d583251f6e450a7afd8f07d1fe1 (patch) | |
tree | 862a4dbabbb7016fa559e81feb1d976294386b17 /meson.build | |
parent | 87f8f4bf01dfb9982c1ef991e4060a5e19fdb7a7 (diff) | |
download | gdk-pixbuf-979a87b9bcf40d583251f6e450a7afd8f07d1fe1.tar.gz |
gdk-pixbuf-xlib: Fix out-of-bounds error in dithering loop
Use two loops to traverse the array of arrays `DM`, i.e. use `DM[y][x]`
instead of `DM[0][i]`.
This resolves a warning about undefined behavior when compiling with GCC
with aggressive loop optimizations enabled.
While we are at it: Move the variable definitions into the body of the
outer if-statement.
https://bugzilla.gnome.org/show_bug.cgi?id=748211
Diffstat (limited to 'meson.build')
0 files changed, 0 insertions, 0 deletions