Skip to content

Commit 0b18ab6

Browse files
committed
Is. htacg#891 Ensure no buffer over-run
Fixes htacg#891
1 parent cb03eed commit 0b18ab6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/streamio.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ static const uint Mac2Unicode[128] =
724724
/* Function to convert from MacRoman to Unicode */
725725
uint TY_(DecodeMacRoman)(uint c)
726726
{
727-
if (127 < c)
727+
if (127 < c && c < 256) /* Is. #891 */
728728
c = Mac2Unicode[c - 128];
729729
return c;
730730
}

0 commit comments

Comments
 (0)