New submission from Serhiy Storchaka: Proposed patch replaces PyMem_Malloc with PyMem_New if the former is used in the form PyMem_Malloc(len * sizeof(type)). This can fix possible overflow errors and makes the code cleaner.
---------- components: Extension Modules, Interpreter Core files: pymem_new.patch keywords: patch messages: 235758 nosy: benjamin.peterson, haypo, serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: Use PyMem_New instead of PyMem_Malloc type: enhancement versions: Python 3.5 Added file: http://bugs.python.org/file38099/pymem_new.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23446> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com