Skip to content

Commit

Permalink
fix ImageMagick#5033:runtime error: load of misaligned address
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxiaoafeifei committed Apr 9, 2022
1 parent bb56f5e commit 0d1b9d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MagickCore/property.c
Expand Up @@ -1545,12 +1545,12 @@ static MagickBooleanType GetEXIFProperty(const Image *image,
}
case EXIF_FMT_SINGLE:
{
EXIFMultipleValues(4,"%f",(double) *(float *) p1);
EXIFMultipleValues(4,"%f",(double)ReadPropertySignedLong(endian,p1));
break;
}
case EXIF_FMT_DOUBLE:
{
EXIFMultipleValues(8,"%f",*(double *) p1);
EXIFMultipleValues(8,"%f",(double)ReadPropertySignedLong(endian,p1));
break;
}
case EXIF_FMT_STRING:
Expand Down

0 comments on commit 0d1b9d7

Please sign in to comment.