8000 Turn certain assertion errors in mpy-cross into SyntaxErrors by jepler · Pull Request #2670 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content
8000

Turn certain assertion errors in mpy-cross into SyntaxErrors #2670

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 3, 2020

Conversation

jepler
Copy link
@jepler jepler commented Mar 1, 2020

Some time back, I fuzz-tested mpy-cross, and found two classes of crash due assertion failures. These changes turn those failures into SyntaxErrors instead. They may also fix an assertion failure crash on real devices.

jepler added 2 commits March 1, 2020 09:38
Before this, such names would instead cause an assertion error inside
qstr_from_strn.

A simple reproducer is a python source file containing the letter "a"
repeated 256 times
…nc def'

A simple reproducer is:
   async for x in():x
@jepler jepler requested a review from tannewt March 1, 2020 15:44
@jepler jepler added this to the 5.x.x - Bug Fixes milestone Mar 1, 2020
Copy link
Member
@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thank you!

@tannewt tannewt merged commit 2e37000 into adafruit:master Mar 3, 2020
@jepler jepler deleted the compile-assertion-errors branch November 3, 2021 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0