Skip to content

gh-158660: Check for NULL items in PyListBuilder_Extend() - #162962

Merged
vstinner merged 9 commits into
python:mainfrom
vstinner:list_builder_null
Dec 2, 2026
Merged

vstinner merged 9 commits into
python:mainfrom
vstinner:list_builder_null

Conversation

@vstinner

@vstinner vstinner commented Dec 1, 2026 •

Copy link
Copy Markdown
Member
  • In debug mode, PyListBuilder_Extend() raises SystemError if an item is NULL.
  • Test PyListBuilder_Extend() on a tuple which contains a NULL item.
  • _PyDict_Next(): add assertions to make sure that key and value are not NULL.

* In debug mode, PyListBuilder_Extend() raises SystemError if an item
  is NULL.
* Test PyListBuilder_Extend() on a tuple which contains a NULL item.
* _PyDict_Next(): add assertions to make sure that key and value are
  not NULL.
@vstinner

vstinner commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

Windows / Build and test (arm64, tail-call) and Windows / Build and test (arm64, switch-case): test_shutil failed. Unrelated failure, see: #162963.

@vstinner
vstinner enabled auto-merge (squash) December 2, 2026 01:27
@vstinner
vstinner merged commit 7e7ff8b into python:main Dec 2, 2026
101 of 103 checks passed
@vstinner
vstinner deleted the list_builder_null branch December 2, 2026 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant