diff options
author | 2023-02-24 12:19:47 +0000 | |
---|---|---|
committer | 2023-02-24 16:49:57 +0000 | |
commit | d1fe964780a082775839a682dcbc4b600dc44042 (patch) | |
tree | 8cc25a390161fac9dcd80c58446ba29c314086d1 /media-libs/aalib/files | |
parent | sys-apps/fwupd: add 1.8.11 (diff) | |
download | gentoo-d1fe964780a082775839a682dcbc4b600dc44042.tar.gz gentoo-d1fe964780a082775839a682dcbc4b600dc44042.tar.bz2 gentoo-d1fe964780a082775839a682dcbc4b600dc44042.zip |
media-libs/aalib: patch a free-offset-pointer bug
While at it, update EAPI 7 -> 8 and drop IUSE=static-libs.
Thanks-to: Jocelyn Mayer <l_indien@mailmagic.fr>
Closes: https://bugs.gentoo.org/894978
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'media-libs/aalib/files')
-rw-r--r-- | media-libs/aalib/files/aalib-1.4_rc5-free-offset-pointer.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/media-libs/aalib/files/aalib-1.4_rc5-free-offset-pointer.patch b/media-libs/aalib/files/aalib-1.4_rc5-free-offset-pointer.patch new file mode 100644 index 000000000000..3ae697e3189c --- /dev/null +++ b/media-libs/aalib/files/aalib-1.4_rc5-free-offset-pointer.patch @@ -0,0 +1,14 @@ +--- a/src/aarender.c ++++ b/src/aarender.c +@@ -63,10 +63,10 @@ void aa_renderpalette(aa_context * c, __ + errors[0] = calloc(1, (x2 + 5) * sizeof(int)); + if (errors[0] == NULL) + dither = AA_ERRORDISTRIB; +- errors[0] += 3; + errors[1] = calloc(1, (x2 + 5) * sizeof(int)); + if (errors[1] == NULL) + free(errors[0]), dither = AA_ERRORDISTRIB; ++ errors[0] += 3; + errors[1] += 3; + cur = 0; + } |