8000 [Bug #20398] Terminate token buffer at invalid octal number · ruby/ruby@2ab9fb1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2ab9fb1

Browse files
committed
[Bug #20398] Terminate token buffer at invalid octal number
1 parent 7630a89 commit 2ab9fb1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

parse.y

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10164,6 +10164,7 @@ parse_numeric(struct parser_params *p, int c)
1016410164
/* prefixed octal */
1016510165
c = nextc(p);
1016610166
if (c == -1 || c == '_' || !ISDIGIT(c)) {
10167+
tokfix(p);
1016710168
return no_digits(p);
1016810169
}
1016910170
}

0 commit comments

Comments
 (0)
0