From 0b18ab6978092a89131316c3d79ba3c1d8453b06 Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Mon, 30 Nov 2020 17:54:06 +0100 Subject: [PATCH] Is. #891 Ensure no buffer over-run Fixes #891 --- src/streamio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/streamio.c b/src/streamio.c index d23f056..5a95b65 100644 --- a/src/streamio.c +++ b/src/streamio.c @@ -724,7 +724,7 @@ static const uint Mac2Unicode[128] = /* Function to convert from MacRoman to Unicode */ uint TY_(DecodeMacRoman)(uint c) { - if (127 < c) + if (127 < c && c < 256) /* Is. #891 */ c = Mac2Unicode[c - 128]; return c; }