Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
Open
Description
Bug report
Bug description:
When the array starts with \x00:
fromctypesimportcreate_string_buffer,c_char,addressofbs=b"\x00\x01\x02\x03\x04"s=create_string_buffer(bs)array= (c_char*16).from_address(addressof(s))print(array.value)
out:
b''
CPython versions tested on:
3.9
Operating systems tested on:
Linux