Skip to content

Conversation

@aisk
Copy link
Contributor

@aisk aisk commented Dec 14, 2025

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move this to the "Library" section.

return -1;
else if (x < -128) {

/* Check buffer validity after PyArg_Parse which may call user-defined
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't you always have this issue in all *_setitem formatters? none of them seem to check ob_item

Comment on lines +1 to +2
Fix null pointer dereference in :class:`array.array.__setitem__` via
an user-defined ``__index__`` method which modify the array during index
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Fix null pointer dereference in :class:`array.array.__setitem__` via
an user-defined ``__index__`` method which modify the array during index
Fix null pointer dereference in :class:`!array.array.__setitem__` via
a user-defined ``__index__`` method which modifies the array during index

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.

4 participants