Open DavidKorczynski opened 1 year ago
Here's a more minimal cut-down which appears to fail in the same way: '\ry.y\n'
. Attempting to cut down further (either by removing the attribute access, leaving just y
, or changing the leading carriage return to a newline) causes the error to disappear. The mix of line ending styles here seems to be part of the issue, though why the attribute access is needed is less clear.
Thanks, I was gonna say something similar. '\ry'
also produces an error, but a different one. Probably the same underlying cause.
The following program raises an uncaught exception:
Where the
atheris
module refers to https://pypi.org/project/atheris/The program is a derivative of the fuzzer here https://github.com/google/oss-fuzz/blob/master/projects/asttokens/fuzz_asttokens.py
The following program is a shortened version of above, without fuzzing-related logic:
This produces the stack trace:
This was found by way of OSS-Fuzz and the set up here: https://github.com/google/oss-fuzz/tree/master/projects/asttokens If you find this issue helpful then it would be great to have maintainer emails in the project.yaml to receive notifications of bug reports, which contain all details similar to what I posted above -- namely they contain the stacktrace, crashing input and identification of the fuzzer.