Skip to content

Conversation

@vstinner
Copy link
Member

@vstinnervstinner commented Nov 30, 2022

The _PySys_GetSizeOf() function now uses an unsigned type (size_t) to compute the size, rather than a signed type (Py_ssize_t).

  • _PySys_GetSizeOf() now checks for integer overflow when adding the header size.
  • Reformat also _PySys_GetSizeOf().

The _PySys_GetSizeOf() function now uses an unsigned type (size_t) to compute the size, rather than a signed type (Py_ssize_t). * _PySys_GetSizeOf() now checks for integer overflow when adding the header size. * Reformat also _PySys_GetSizeOf().
@vstinnervstinner deleted the sys_getsizeof branch December 13, 2022 15:22
Sign up for freeto 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.

2 participants

@vstinner@bedevere-bot