From: Cristy Date: Tue, 5 Mar 2019 00:58:00 +0000 (-0500) Subject: ... X-Git-Tag: 7.0.8-32~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=edc7d3035883ddca8413e4fe7689aa2e579ef04a;p=imagemagick ... --- diff --git a/ChangeLog b/ChangeLog index eb3d33de8..f3ac83be4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2019-03-05 7.0.8-32 Cristy + * Release ImageMagick version 7.0.8-32, GIT revision ... + +2019-03-05 7.0.8-32 Cristy + * Fix out-of-boundary LocaleLowerCase() @ + https://github.com/ImageMagick/ImageMagick/issues/1495 + 2019-03-04 7.0.8-31 Cristy * Release ImageMagick version 7.0.8-31, GIT revision 15381:3122a669d:20190304 diff --git a/MagickCore/locale.c b/MagickCore/locale.c index 158b7ef92..4bcab6df3 100644 --- a/MagickCore/locale.c +++ b/MagickCore/locale.c @@ -1521,6 +1521,8 @@ MagickExport void LocaleLower(char *string) */ MagickExport int LocaleLowercase(const int c) { + if (c < 0) + return(c); #if defined(MAGICKCORE_LOCALE_SUPPORT) if (c_locale != (locale_t) NULL) return(tolower_l((int) ((unsigned char) c),c_locale)); @@ -1659,6 +1661,8 @@ MagickExport void LocaleUpper(char *string) */ MagickExport int LocaleUppercase(const int c) { + if (c < 0) + return(c); #if defined(MAGICKCORE_LOCALE_SUPPORT) if (c_locale != (locale_t) NULL) return(toupper_l((int) ((unsigned char) c),c_locale));