Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-106168: PyTuple_SET_ITEM() now checks the index #106164

Merged
merged 2 commits into from
Jun 28, 2023

Commits on Jun 28, 2023

  1. pythongh-106168: PyTuple_SET_ITEM() now checks the index

    PyTuple_SET_ITEM() and PyList_SET_ITEM() now check the index argument
    with an assertion if Python is built in debug mode or is built with
    assertions.
    
    * list_extend() and _PyList_AppendTakeRef() now set the list size
      before calling PyList_SET_ITEM().
    * PyStructSequence_GetItem() and PyStructSequence_SetItem() now check
      the index argument: must be lesser than REAL_SIZE(op).
    * PyStructSequence_GET_ITEM() and PyStructSequence_SET_ITEM() are now
      aliases to PyStructSequence_GetItem() and
      PyStructSequence_SetItem().
    vstinner committed Jun 28, 2023
    Configuration menu
    Copy the full SHA
    fb5b51b View commit details
    Browse the repository at this point in the history
  2. Update the doc

    vstinner committed Jun 28, 2023
    Configuration menu
    Copy the full SHA
    9eb147d View commit details
    Browse the repository at this point in the history