[New-bugs-announce] [issue23446] Use PyMem_New instead of PyMem_Malloc

Serhiy Storchaka report at bugs.python.org
Wed Feb 11 18:30:15 CET 2015


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 <report at bugs.python.org>
<http://bugs.python.org/issue23446>
_______________________________________


More information about the New-bugs-announce mailing list