7abd542e96
Patches added: - cairo-xlib-endianness.patch -- Fix crash when client and server have different endianness - cairo-get_bitmap_surface-bsc1036789-CVE-2017-7475.diff -- Fix segfault in get_bitmap_surface - cairo-fix-off-by-one-check.patch -- Fix off by one check in cairo-image-info.c - 0001-image-prevent-invalid-ptr-access-for-4GB-images.patch CVE-2016-9082 -- Fix segfault when using >4GB images
16 lines
378 B
Diff
16 lines
378 B
Diff
--- cairo/src/cairo-xlib-render-compositor.c 2013-04-12 11:22:48.010384018 +0200
|
|
+++ cairo/src/cairo-xlib-render-compositor.c.new 2013-04-12 11:23:54.362925287 +0200
|
|
@@ -1318,10 +1318,10 @@
|
|
}
|
|
n = new;
|
|
d = (uint32_t *) data;
|
|
- do {
|
|
+ while (c--) {
|
|
*n++ = bswap_32 (*d);
|
|
d++;
|
|
- } while (--c);
|
|
+ }
|
|
data = (uint8_t *) new;
|
|
}
|
|
break;
|