You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ctypes segfaults when passing a unicode string to a function without argtypes #49453
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/theller'closed_at=<Date2009-02-10.19:07:27.013>created_at=<Date2009-02-10.12:48:03.105>labels= ['ctypes', 'type-crash']
title='ctypes segfaults when passing a unicode string to a function without argtypes'updated_at=<Date2009-02-10.19:07:27.011>user='https://github.com/amauryfa'
Fixed in trunk (rev 69505) and release26-maint (rev 69506).
The bug was already fixed in a different way in py3k and release30-maint
although in a different way, I merged this exact fix anyway (rev 69507
and rev 69508).
Activity
amauryfa commentedon Feb 10, 2009
The following code segfaults on platforms where HAVE_USABLE_WCHAR_T is
not defined (for example: narrow unicode build and sizeof(wchar_t)==4)
(it works if the argtypes member is defined)
The reason is a non initialized structure, and the correction is trivial:
theller commentedon Feb 10, 2009
Fixed in trunk (rev 69505) and release26-maint (rev 69506).
The bug was already fixed in a different way in py3k and release30-maint
although in a different way, I merged this exact fix anyway (rev 69507
and rev 69508).
Thanks.