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
Out of bounds co_* tuple access is allowed #95222
Comments
This is intentional I believe for efficiency - there's many ways invalid bytecode can crash the eval loop, and fixing them would degrade performance. Easier to say "don't do that". |
@TeamSpen210 I think it should be validated in a place like |
See this comment from the "crashers" tests: cpython/Lib/test/crashers/bogus_code_obj.py Lines 2 to 11 in 2ef73be
|
This isn't worth fixing as there are many ways to crash the interpreter with broken code objects. cpython/Lib/test/crashers/bogus_code_obj.py Lines 2 to 11 in 2ef73be
|
When a
LOAD_*
instruction needs to load from aco_*s
tuple, it can segfault and crash the program when the index is out of bounds.Examples:
The text was updated successfully, but these errors were encountered: