Commit 82945216 authored by Cristy's avatar Cristy

...

parent 3652ab98
......@@ -895,7 +895,7 @@ static void Hull(const Image *image,const ssize_t x_offset,
assert(g != (Quantum *) NULL);
p=f+(columns+2);
q=g+(columns+2);
r=p+(y_offset*(columns+2)+x_offset);
r=p+(y_offset*((ssize_t) columns+2)+x_offset);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) \
magick_number_threads(image,image,rows,1)
......@@ -931,8 +931,8 @@ static void Hull(const Image *image,const ssize_t x_offset,
}
p=f+(columns+2);
q=g+(columns+2);
r=q+(y_offset*(columns+2)+x_offset);
s=q-(y_offset*(columns+2)+x_offset);
r=q+(y_offset*((ssize_t) columns+2)+x_offset);
s=q-(y_offset*((ssize_t) columns+2)+x_offset);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) \
magick_number_threads(image,image,rows,1)
......
......@@ -1403,8 +1403,6 @@ static char *ParseEntities(char *xml,char **entities,int state)
if (*xml == '\n')
(void) memmove(xml,xml+1,strlen(xml));
}
if (*xml == '\0')
return(ConstantString(xml));
for (xml=p; ; )
{
while ((*xml != '\0') && (*xml != '&') && ((*xml != '%') ||
......@@ -1486,13 +1484,16 @@ static char *ParseEntities(char *xml,char **entities,int state)
offset=(ssize_t) (xml-p);
extent=(size_t) (offset+length+strlen(entity));
if (p != q)
p=(char *) ResizeQuantumMemory(p,extent,sizeof(*p));
{
p=(char *) ResizeQuantumMemory(p,extent+1,sizeof(*p));
p[extent]='\0';
}
else
{
char
*extent_xml;
extent_xml=(char *) AcquireQuantumMemory(extent,
extent_xml=(char *) AcquireQuantumMemory(extent+1,
sizeof(*extent_xml));
if (extent_xml != (char *) NULL)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment