Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions Modules/_xxtestfuzz/dictionaries/fuzz_pycompile.dict
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@

# whitespace
" "
"\\t"
":\\n "
"\\\n"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@StanFromIreland I am seeing some fuzzing errors on my branch related to this change:

https://github.com/python/cpython/actions/runs/23167480851/job/67311144393?pr=146033

For some reason I do not see the same errors on other PRs. I tried tracing where the fuzzer parses the entries, and ended up here:

https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/fuzzer/FuzzerUtil.cpp#L81

There I see no parsing of \n, but I could be wrong

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh right, it should be "\\\\n".

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wrote: #146069


# type signatures and functions
"-> "
Expand Down Expand Up @@ -88,6 +90,8 @@
# variable names
"x"
"y"
"_"
"*x"

# strings
"r'x'"
Expand All @@ -98,12 +102,24 @@

"br\"x\""

"u\"x\""

"f'{x + 5}'"
"f\"{x + 5}\""
"f'{s!r}'"
"f'{s!s}'"
"f'{s!a}'"
"f'{x=}'"

"t'{s + 5}'"
"t\"{s + 5}\""
"tr's'"
"rt\"s\""

"'''"
"\"\"\""

"\\N"
"\\u"
"\\x"

Expand Down Expand Up @@ -131,6 +147,7 @@
"while "
"try: "
"except "
"except* "
"finally: "
"with "
"lambda "
Expand All @@ -148,6 +165,10 @@
"in "
"is "
"class "
"match "
"case "
"type "
"lazy "

# shebangs and encodings
"#!"
Expand Down
Loading