From: Debian Science Maintainers Date: Mon, 10 Oct 2016 08:22:44 +0100 Subject: CVE-2016-5684 --- Source/FreeImage/PluginXPM.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/FreeImage/PluginXPM.cpp b/Source/FreeImage/PluginXPM.cpp index a698321..cc7bd07 100644 --- a/Source/FreeImage/PluginXPM.cpp +++ b/Source/FreeImage/PluginXPM.cpp @@ -181,6 +181,11 @@ Load(FreeImageIO *io, fi_handle handle, int page, int flags, void *data) { } free(str); + // check info string + if((width <= 0) || (height <= 0) || (colors <= 0) || (cpp <= 0)) { + throw "Improperly formed info string"; + } + if (colors > 256) { dib = FreeImage_AllocateHeader(header_only, width, height, 24, FI_RGBA_RED_MASK, FI_RGBA_GREEN_MASK, FI_RGBA_BLUE_MASK); } else { @@ -193,7 +198,7 @@ Load(FreeImageIO *io, fi_handle handle, int page, int flags, void *data) { FILE_RGBA rgba; str = ReadString(io, handle); - if(!str) + 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 href='/guix/tree/tests/sets.scm?id=628bdd6223135e4447a6f71e580f8124bffac1ef'>treecommitdiff
path: root/tests/sets.scm
30cb731df29181'>guix: Really export 'define-public'....This is a followup to 3858275962f1ac567b5dce2355035f9eddea0a05, which didn't have any effect. * guix.scm: Explicitly use (guix packages) so #:re-export-and-replace is effective.
AgeCommit message (Expand)Author
Ludovic Courtès
2021-09-14guix: Replace 'define-public'....This is a followup to 8531997d2a1e10d574a6e9ab70bc86ade6af4733. * guix.scm: Use #:re-export-and-replace for 'define-public'. Ludovic Courtès
2021-06-29(guix) no longer pulls in (guix ftp-client)....That choice was made in 2014 and never made much sense. * guix.scm (%public-modules): Remove 'ftp-client'. Ludovic Courtès