[issue15058] Potential Bugs in dlpvalloc and dlvalloc

Ken Cheung report at bugs.python.org
Wed Jun 13 19:46:47 CEST 2012


New submission from Ken Cheung <msrbugzilla at gmail.com>:

I observed a code clone from the following files.

function : dlpvalloc @ (file: "Python-3.3.0a2/Modules/_ctypes/libffi/src/dlmalloc.c", line: 4360)~4362
function : dlvalloc @ (file: "Python-3.3.0a2/Modules/_ctypes/libffi/src/dlmalloc.c", line: 4353)~4355

The function dlpvalloc performs a bitwise operation at return while dlvalloc does not. I wonder if this is necessary in dlvalloc. The source code is included in the attachment. Hope it helps.

----------
components: Library (Lib)
files: dlmalloc_clone.txt
messages: 162718
nosy: Ken.Cheung
priority: normal
severity: normal
status: open
title: Potential Bugs in dlpvalloc and dlvalloc
type: behavior
versions: Python 3.3
Added file: http://bugs.python.org/file25950/dlmalloc_clone.txt

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15058>
_______________________________________


More information about the Python-bugs-list mailing list