Skip to content

Commit

Permalink
fix: accept only valid octal digits (thanks fuzz!)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhdaines committed Sep 19, 2024
1 parent cd48685 commit fbe630b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playa/psparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ def _parse_hexstring(self) -> bytes:
)
STRLEXER = re.compile(
rb"""(?:
(?P<octal> \\\d{1,3})
(?P<octal> \\[0-7]{1,3})
| (?P<linebreak> \\(?:\r\n?|\n))
| (?P<escape> \\.)
| (?P<parenleft> \()
Expand Down

0 comments on commit fbe630b

Please sign in to comment.