| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Add ENSURE_STRUCT_IS_READY() checks to Struct.__sizeof__() and Struct.__repr__() to prevent NULL pointer dereference and invalid memory read when called on a Struct created via __new__() without __init__().
There was a problem hiding this comment.
lgtm!
Sorry, something went wrong.
|
Sorry, @raminfp and @corona10, I could not cleanly backport this to 3.14 due to a conflict. cherry_picker 2cf6b2caade94e75f10363df6f432a3e6515be6c 3.14 |
Sorry, something went wrong.
|
Sorry, @raminfp and @corona10, I could not cleanly backport this to 3.13 due to a conflict. cherry_picker 2cf6b2caade94e75f10363df6f432a3e6515be6c 3.13 |
Sorry, something went wrong.
|
@raminfp In my local environment, Python 3.14 and 3.13 have same issue, would you like to create a backport patch for this? |
Sorry, something went wrong.
|
GH-145630 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
|
GH-145631 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Add ENSURE_STRUCT_IS_READY() checks to Struct.__sizeof__() and Struct.__repr__() to prevent crashes when called on uninitialized Struct objects.