diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2017-06-04 17:36:54 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2017-06-04 17:38:27 +0200 |
commit | 85ec0fe12f825538a27506b28f9c5368e6a942d9 (patch) | |
tree | 51efe131d7c12680f9c886cde9355035751eb868 /media-libs/ming/files | |
parent | mate-base/mate-session-manager: update metadata (diff) | |
download | gentoo-85ec0fe12f825538a27506b28f9c5368e6a942d9.tar.gz gentoo-85ec0fe12f825538a27506b28f9c5368e6a942d9.tar.bz2 gentoo-85ec0fe12f825538a27506b28f9c5368e6a942d9.zip |
media-libs/ming: Rev bump to add patch for CVE-2017-8782 (bug #620318)
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'media-libs/ming/files')
-rw-r--r-- | media-libs/ming/files/ming-0.4.8-CVE-2017-8782.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/media-libs/ming/files/ming-0.4.8-CVE-2017-8782.patch b/media-libs/ming/files/ming-0.4.8-CVE-2017-8782.patch new file mode 100644 index 000000000000..223d363ae0b0 --- /dev/null +++ b/media-libs/ming/files/ming-0.4.8-CVE-2017-8782.patch @@ -0,0 +1,28 @@ +https://github.com/libming/libming/commit/6eca133ee9985c298186cbe05f888082c30bf2d9 + +--- a/util/read.c ++++ b/util/read.c +@@ -247,6 +247,11 @@ char *readString(FILE *f) + if(len >= buflen-2) + { + buf = (char *)realloc(buf, sizeof(char)*(buflen+256)); ++ if ( ! buf ) ++ { ++ fprintf(stderr, "failed reallocating %d bytes\n", buflen+256); ++ exit(-1); ++ } + buflen += 256; + p = buf+len; + } +@@ -350,6 +355,11 @@ char *readSizedString(FILE *f,int size) + if(len >= buflen-2) + { + buf = (char *)realloc(buf, sizeof(char)*(buflen+256)); ++ if ( ! buf ) ++ { ++ fprintf(stderr, "failed reallocating %d bytes\n", buflen+256); ++ exit(-1); ++ } + buflen += 256; + p = buf+len; + } |