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)
}
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)
if (*xml == '\n')
(void) memmove(xml,xml+1,strlen(xml));
}
- if (*xml == '\0')
- return(ConstantString(xml));
for (xml=p; ; )
{
while ((*xml != '\0') && (*xml != '&') && ((*xml != '%') ||
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)
{