Skip to content

Commit

Permalink
leverage SplitStringInfo() to remove TIFF offset
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Nov 25, 2022
1 parent a52d78a commit afc85bc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions coders/jxl.c
Expand Up @@ -530,10 +530,8 @@ static Image *ReadJXLImage(const ImageInfo *image_info,ExceptionInfo *exception)
offset|=(unsigned int) *(p+3);
offset+=4;
if (offset < (size-4))
{
(void) memcpy(p,p+offset,size-offset);
SetStringInfoLength(exif_profile,size-offset);
}
(void) DestroyStringInfo(SplitStringInfo(exif_profile,(size_t)
offset));
}
if (LocaleNCompare(type,"xml ",sizeof(type)) == 0)
{
Expand Down

0 comments on commit afc85bc

Please sign in to comment.