forked from benfred/py-spy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix panic in Python 3.12 line number handling
The read_varint function would panic when trying to read past the end of the line table. This fix adds bounds checking and returns Option<usize> to handle this case gracefully. Fixes benfred#735
- Loading branch information
1 parent
1fa3a6d
commit e01bbfa
Showing
1 changed file
with
14 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters