Skip to content

Commit

Permalink
Coders: PS and EPS %%BoundingBox not being parsed #4961
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Mar 19, 2022
1 parent 450949e commit 2a67214
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions coders/ps.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,10 @@ static void ReadPSInfo(const ImageInfo *image_info,Image *image,PSInfo *ps_info)
{
if ((c == '\r') || (c == '\n') ||
((i+1) == (ssize_t) sizeof(version)))
break;
{
new_line=MagickTrue;
break;
}
version[i++]=(char) c;
}
version[i]='\0';
Expand Down Expand Up @@ -412,7 +415,10 @@ static void ReadPSInfo(const ImageInfo *image_info,Image *image,PSInfo *ps_info)
for (c=PeekMagickByteBuffer(&buffer); c != EOF; c=PeekMagickByteBuffer(&buffer))
{
if ((c == '\r') || (c == '\n') || ((i+1) == MagickPathExtent))
break;
{
new_line=MagickTrue;
break;
}
name[i++]=(char) ReadMagickByteBuffer(&buffer);
}
name[i]='\0';
Expand Down

0 comments on commit 2a67214

Please sign in to comment.