diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-libs/freeimage/files/freeimage-3.15.4-CVE-2016-5684-2.patch |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-libs/freeimage/files/freeimage-3.15.4-CVE-2016-5684-2.patch')
-rw-r--r-- | media-libs/freeimage/files/freeimage-3.15.4-CVE-2016-5684-2.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/media-libs/freeimage/files/freeimage-3.15.4-CVE-2016-5684-2.patch b/media-libs/freeimage/files/freeimage-3.15.4-CVE-2016-5684-2.patch new file mode 100644 index 000000000000..542a9aeab094 --- /dev/null +++ b/media-libs/freeimage/files/freeimage-3.15.4-CVE-2016-5684-2.patch @@ -0,0 +1,11 @@ +--- a/Source/FreeImage/PluginXPM.cpp ++++ b/Source/FreeImage/PluginXPM.cpp +@@ -198,7 +198,7 @@ + FILE_RGBA rgba; + + str = ReadString(io, handle); +- if(!str || (strlen(str) < cpp)) ++ if(!str || (strlen(str) < (size_t)cpp)) + throw "Error reading color strings"; + + std::string chrs(str,cpp); //create a string for the color chars using the first cpp chars |