Stefan Krah stefan-use...@bytereef.org added the comment:
Could you please state the Python version and line numbers in
memoryobject.c?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15309
Stefan Krah stefan-use...@bytereef.org added the comment:
I see nothing wrong in memory_ass_sub(). In 2.7:
if (destbuf + bytelen srcbuf || srcbuf + bytelen destbuf)
/* No overlapping */
memcpy(destbuf, srcbuf, bytelen);
else
memmove(destbuf, srcbuf, bytelen);
New submission from Ronny Pfannschmidt ronny.pfannschm...@gmail.com:
thats broken for assigning overlaping regions, the memcpy docs explicitly state
that memmove should be used in overlap cases
--
messages: 165127
nosy: Ronny.Pfannschmidt
priority: normal
severity: normal
status: open
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +skrah
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15309
___
___
Python-bugs-list mailing