This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Jeffrey.Walton, alex, alexandre.vassalotti, deadshort, dmalcolm, donmez, fweimer, jcea, jwilk, loewis, mark.dickinson, martin.panter, matejcik, miss-islington, nnorwitz, pitrou, python-dev, serhiy.storchaka, sir-sigurd, vstinner, xiang.zhang, ztane
Date 2018-09-13.18:54:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Benjamin: what do you think of adding an explicit check after the "new_size <<= 1;" loop?

    if (new_size > (size_t)PY_SSIZE_T_MAX) {
        return -1;

Technically, PyMem_Malloc() already implements the check, so it's not really needed. So I'm not sure if it's needed :-)
Date User Action Args
2018-09-13 18:54:21vstinnersetrecipients: + vstinner, loewis, nnorwitz, jcea, mark.dickinson, pitrou, alexandre.vassalotti, donmez, matejcik, jwilk, alex, dmalcolm, python-dev, deadshort, martin.panter, serhiy.storchaka, ztane, fweimer, Jeffrey.Walton, xiang.zhang, sir-sigurd, miss-islington
2018-09-13 18:54:21vstinnersetmessageid: <>
2018-09-13 18:54:21vstinnerlinkissue1621 messages
2018-09-13 18:54:21vstinnercreate