Skip to content
Snippets Groups Projects
Commit 9648cde9 authored by Per Hedbor's avatar Per Hedbor
Browse files

Fixed bug in octal escape parsing.

It has accepted 8:s for quite some time, which is somewhat
confusing and could not possible be intentional.

Right?
parent de6d88c0
Branches
Tags
No related merge requests found
......@@ -214,7 +214,7 @@ int parse_esc_seq (WCHAR *buf, p_wchar2 *chr, ptrdiff_t *len)
case '0': case '1': case '2': case '3':
case '4': case '5': case '6': case '7': {
unsigned INT32 n = c-'0';
for (l = 1; buf[l] >= '0' && buf[l] <= '8'; l++) {
for (l = 1; buf[l] >= '0' && buf[l] < '8'; l++) {
if (DO_UINT32_MUL_OVERFLOW(n, 8, &n))
of = 1;
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment