oss-fuzz-451112368: fix found crash#144807
Conversation
Signed-off-by: Adam <adam@Adam-Workstation.lan>
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
|
Thanks for the contribution! Would you mind adding a regression test for this in https://github.com/python/cpython/blob/main/Lib/test/test_tokenize.py |
Add a test covering truncated multi-byte UTF-8 sequences at end of input. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
|
I added a test. (discussed with PSRT) We're not considering this a security issue, |
|
We do like to have issues filed to track things - read up on https://devguide.python.org/getting-started/pull-request-lifecycle/#pullrequest while you're working on already public oss-fuzz findings, as they are public it is fine to go ahead and make public PRs. But if you come across any that seem actually security relevant, please reach out via email to the to PSRT, or since you're producing fix PRs maybe just use https://github.com/python/cpython/security to drop those in GHSA's for us to look over (many will probably be things we just open directly to the public as a non-concern "more of a bug" like this one) |
Fixes https://issues.oss-fuzz.com/issues/451112368
cc @ammaraskar