Commit 2e795353 authored by Takashi Sogabe's avatar Takashi Sogabe

Fix loss of MSB in conditions of octal formatted string

parent 674c55eb
...@@ -3307,7 +3307,8 @@ read_escape(parser_state *p) ...@@ -3307,7 +3307,8 @@ read_escape(parser_state *p)
int buf[3]; int buf[3];
int i; int i;
for (i=0; i<3; i++) { buf[0] = c;
for (i=1; i<3; i++) {
buf[i] = nextc(p); buf[i] = nextc(p);
if (buf[i] == -1) goto eof; if (buf[i] == -1) goto eof;
if (buf[i] < '0' || '7' < buf[i]) { if (buf[i] < '0' || '7' < buf[i]) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment