2011-03-25 6.6.8-8 Cristy <quetzlzacatenango@image...>
* Fix memory access bug in CloneString() (reference
http://www.imagemagick.org/discourse-server/viewtopic.php?f=2&t=18382).
+ * Avoid infinite loop when no space is available in MagickFormatCaption().
2011-03-25 6.6.8-8 Anthony Thyssen <A.Thyssen@griffith...>
* Removed the fix for %p and %n escapes, as it was not working right
%global VERSION 6.6.8
-%global Patchlevel 9
+%global Patchlevel 8
Name: ImageMagick
Version: %{VERSION}
<configure name="NAME" value="ImageMagick"/>
<configure name="VERSION" value="6.6.8"/>
<configure name="LIB_VERSION" value="0x668"/>
- <configure name="LIB_VERSION_NUMBER" value="6,6,8,9"/>
+ <configure name="LIB_VERSION_NUMBER" value="6,6,8,8"/>
<configure name="RELEASE_DATE" value="2011-03-25"/>
<configure name="CONFIGURE" value="./configure "/>
<configure name="PREFIX" value="/usr/local"/>
#! /bin/sh
# libtool - Provide generalized library-building support services.
-# Generated automatically by config.status (ImageMagick) 6.6.8-9
+# Generated automatically by config.status (ImageMagick) 6.6.8-8
# Libtool was configured on host magick.imagemagick.org:
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
MagickExport ssize_t FormatMagickCaption(Image *image,DrawInfo *draw_info,
const MagickBooleanType split,TypeMetric *metrics,char **caption)
{
+ char
+ *snippet;
+
MagickBooleanType
status;
q=draw_info->text;
s=(char *) NULL;
+ snippet=(char *) NULL;
for (p=(*caption); GetUTFCode(p) != 0; p+=GetUTFOctets(p))
{
+ if (snippet != (char *) NULL)
+ {
+ if ((p != (char *) NULL) && (memcmp(p,snippet,strlen(p)) == 0))
+ break; /* caption won't fit in allotted space */
+ snippet=DestroyString(snippet);
+ }
+ snippet=AcquireString(p);
if (IsUTFSpace(GetUTFCode(p)) != MagickFalse)
s=p;
for (i=0; i < (ssize_t) GetUTFOctets(p); i++)
s=(char *) NULL;
q=draw_info->text;
}
+ if (snippet != (char *) NULL)
+ snippet=DestroyString(snippet);
i=0;
for (p=(*caption); GetUTFCode(p) != 0; p+=GetUTFOctets(p))
if (GetUTFCode(p) == '\n')
#define MagickLibVersion 0x668
#define MagickLibVersionText "6.6.8"
#define MagickLibVersionNumber 4,0,1
-#define MagickLibAddendum "-9"
+#define MagickLibAddendum "-8"
#define MagickLibInterface 4
#define MagickLibMinInterface 4
#define MagickReleaseDate "2011-03-25"
# PACKAGE_NAME (e.g. "1.0.0").
PACKAGE_VERSION='6.6.8'
PACKAGE_LIB_VERSION="0x668"
-PACKAGE_RELEASE="9"
+PACKAGE_RELEASE="8"
PACKAGE_LIB_VERSION_NUMBER="6,6,8,${PACKAGE_RELEASE}"
PACKAGE_RELEASE_DATE=`date +%F`
PACKAGE_STRING="$PACKAGE_NAME $PACKAGE_VERSION"