[New-bugs-announce] [issue12769] String with NUL characters truncated by ctypes when assigning to a char array

Rafał Dowgird report at bugs.python.org
Wed Aug 17 15:06:11 CEST 2011


New submission from Rafał Dowgird <dowgird at gmail.com>:

The ctypes module seems to truncate NUL-containing strings when assigning to structure fields of type c_char*1024. Reproduced on a 2.7.2 compiled from tarball. Script to reproduce attached.

----------
components: ctypes
files: reproduce.py
messages: 142274
nosy: Rafal.Dowgird
priority: normal
severity: normal
status: open
title: String with NUL characters truncated by ctypes when assigning to a char array
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file22920/reproduce.py

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


More information about the New-bugs-announce mailing list