fix unaligned access in gethex() --- a/fontforge/sfd.c 2017-12-30 23:11:52.799232125 +0100 +++ b/fontforge/sfd.c 2017-12-30 23:12:27.339230966 +0100 @@ -3393,6 +3393,7 @@ static int gethex(FILE *sfd, uint32 *val) { char tokbuf[100]; int ch; char *pt=tokbuf, *end = tokbuf+100-2; + uint32 u; while ( isspace(ch = nlgetc(sfd))); if ( ch=='#' ) @@ -3416,7 +3417,8 @@ } *pt='\0'; ungetc(ch,sfd); - *val = strtoul(tokbuf,NULL,16); + u = strtoul(tokbuf,NULL,16); + memcpy(val, &u, sizeof(u)); return( pt!=tokbuf?1:ch==EOF?-1: 0 ); }