diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-08-24 08:51:03 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-08-24 08:59:20 +0000 |
commit | 887ce5de6251962b5d71a2d3af7a7f39871cf394 (patch) | |
tree | de9ac87b8578d1ec3035fbd63038f857272d9d1c /community/graphicsmagick/CVE-2017-11722.patch | |
parent | 8ec38c157f3b02dbfaeae70d88c36709642a3327 (diff) | |
download | aports-887ce5de6251962b5d71a2d3af7a7f39871cf394.tar.bz2 aports-887ce5de6251962b5d71a2d3af7a7f39871cf394.tar.xz |
community/graphicsmagick: security fixes for various CVEs:
* CVE-2017-11642
* CVE-2017-11722
* CVE-2017-12935
* CVE-2017-12936
* CVE-2017-12937
* CVE-2017-13063
* CVE-2017-13064
Fixes #7748
Diffstat (limited to 'community/graphicsmagick/CVE-2017-11722.patch')
-rw-r--r-- | community/graphicsmagick/CVE-2017-11722.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/community/graphicsmagick/CVE-2017-11722.patch b/community/graphicsmagick/CVE-2017-11722.patch new file mode 100644 index 0000000000..f1ce0ad73f --- /dev/null +++ b/community/graphicsmagick/CVE-2017-11722.patch @@ -0,0 +1,33 @@ + +# HG changeset patch +# User Glenn Randers-Pehrson <glennrp+bmo@gmail.com> +# Date 1501028322 14400 +# Node ID f423ba88ca4ed01b7143520a7e00c360049aa823 +# Parent d1e56efb0162a836707d41182d6d658d1cad49e6 +coders/png.c: Fixed writer bug due to missing brackets + +diff -r d1e56efb0162 -r f423ba88ca4e coders/png.c +--- a/coders/png.c Tue Jul 25 19:38:39 2017 -0400 ++++ b/coders/png.c Tue Jul 25 20:18:42 2017 -0400 +@@ -7125,12 +7125,14 @@ + png_error(ping, "Could not allocate trans_alpha"); + + for (i=0; i<(int) number_colors; i++) +- if (trans_alpha[i] == 256) +- ping_trans_alpha[i]=255; +- else +- ping_trans_alpha[i]=(png_byte) trans_alpha[i]; +- (void) LogMagickEvent(CoderEvent, GetMagickModule(), +- " Alpha[%d]=%d",(int) i, (int) trans_alpha[i]); ++ { ++ if (trans_alpha[i] == 256) ++ ping_trans_alpha[i]=255; ++ else ++ ping_trans_alpha[i]=(png_byte) trans_alpha[i]; ++ (void) LogMagickEvent(CoderEvent, GetMagickModule(), ++ " Alpha[%d]=%d",(int) i, (int) trans_alpha[i]); ++ } + } + } + + |