profile=GetImageProfile(image,"8bim");
if (profile == (StringInfo *) NULL)
return(MagickFalse);
- count=(ssize_t) sscanf(key,"8BIM:%ld,%ld:%[^\n]\n%[^\n]",&start,&stop,name,
- format);
+ count=(ssize_t) sscanf(key,"8BIM:%ld,%ld:%1024[^\n]\n%1024[^\n]",&start,&stop,
+ name,format);
if ((count != 2) && (count != 3) && (count != 4))
return(MagickFalse);
if (count < 4)
width=0;
height=0;
while (ReadBlobString(image,buffer) != (char *) NULL)
- if (sscanf(buffer,"#define %s %u",name,&width) == 2)
+ if (sscanf(buffer,"#define %32s %u",name,&width) == 2)
if ((strlen(name) >= 6) &&
(LocaleCompare(name+strlen(name)-6,"_width") == 0))
break;
while (ReadBlobString(image,buffer) != (char *) NULL)
- if (sscanf(buffer,"#define %s %u",name,&height) == 2)
+ if (sscanf(buffer,"#define %32s %u",name,&height) == 2)
if ((strlen(name) >= 7) &&
(LocaleCompare(name+strlen(name)-7,"_height") == 0))
break;
version=11;
while (ReadBlobString(image,buffer) != (char *) NULL)
{
- if (sscanf(buffer,"static short %s = {",name) == 1)
+ if (sscanf(buffer,"static short %32s = {",name) == 1)
version=10;
else
- if (sscanf(buffer,"static unsigned char %s = {",name) == 1)
+ if (sscanf(buffer,"static unsigned char %32s = {",name) == 1)
version=11;
else
- if (sscanf(buffer,"static char %s = {",name) == 1)
+ if (sscanf(buffer,"static char %32s = {",name) == 1)
version=11;
else
continue;
char
filename[MagickPathExtent];
- (void) sscanf(clone_info->filename,"%lx,%lx,%s",¶m1,¶m2,&filename);
+ (void) sscanf(clone_info->filename,"%lx,%lx,%2048s",¶m1,¶m2,
+ filename);
blob_data=(char **) param1;
blob_length=(size_t *) param2;
image=BlobToImage(clone_info,*blob_data,*blob_length,exception);
blob_length;
*filename='\0';
- (void) sscanf(clone_info->filename,"%lx,%s",¶m1,&filename);
+ (void) sscanf(clone_info->filename,"%lx,%2048s",¶m1,filename);
hr=S_OK;
pSafeArray=(SAFEARRAY *) param1;
if (pSafeArray)
clone_info=CloneImageInfo(image_info);
if (clone_info->filename[0])
{
- (void) sscanf(clone_info->filename,"%lx,%lx,%s",
- ¶m1,¶m2,&filename);
+ (void) sscanf(clone_info->filename,"%lx,%lx,%2048s",
+ ¶m1,¶m2,filename);
blob_data=(char **) param1;
blob_length=(size_t *) param2;
scene = 0;
- (void) CopyMagickString(clone_info->filename,filename,MagickPathExtent);
+ (void) CopyMagickString(clone_info->filename,filename,
+ MagickPathExtent);
for (p=image; p != (Image *) NULL; p=GetNextImageInList(p))
{
(void) CopyMagickString(p->filename,filename,MagickPathExtent);
clone_info=CloneImageInfo(image_info);
if (*clone_info->filename != '\0')
{
- (void) sscanf(clone_info->filename,"%lx,%s",¶m1,&filename);
+ (void) sscanf(clone_info->filename,"%lx,%2048s",¶m1,filename);
image->client_data=param1;
scene=0;
- (void) CopyMagickString(clone_info->filename,filename,MagickPathExtent);
+ (void) CopyMagickString(clone_info->filename,filename,
+ MagickPathExtent);
for (p=image; p != (Image *) NULL; p=GetNextImageInList(p))
{
(void) CopyMagickString(p->filename,filename,MagickPathExtent);