[issue19529] Fix unicode_aswidechar() with 4byte unicode and 2byte wchar_t, for AIX
Georg Brandl added the comment: Committed in 18983332626b. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19529 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19529] Fix unicode_aswidechar() with 4byte unicode and 2byte wchar_t, for AIX
Serhiy Storchaka added the comment: Georg, what is your decision? -- nosy: +serhiy.storchaka stage: - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19529 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19529] Fix unicode_aswidechar() with 4byte unicode and 2byte wchar_t, for AIX
Georg Brandl added the comment: Looks obvious and is potentially a security fix, so it can/should go in. Please add a NEWS entry. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19529 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19529] Fix unicode_aswidechar() with 4byte unicode and 2byte wchar_t, for AIX
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19529 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19529] Fix unicode_aswidechar() with 4byte unicode and 2byte wchar_t, for AIX
Michael Haubenwallner added the comment: It is the abort() libc function being called, causing a core file to be written. And I can see the backtrace from both the core file or when running in the debugger. Yes: I already have included this fix into my python-3.2.5 packaging. I'm basically fine when this patch is accepted technically, although I'd prefer to see it included in the next 3.2 release, if any. In fact I've reported it only because I've seen a 2.7 release recently - ohw, and 2.6.9 yesterday, so I've expected there eventually may be another 3.2 release too. Yes: This bug does not exist since 3.3 any more due to the rewrite. And indeed I'd also call this a security fix because it is of the invalid memory read type: I do see the filenames being truncated after 112 characters when building in some longer build-path. Thank you! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19529 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19529] Fix unicode_aswidechar() with 4byte unicode and 2byte wchar_t, for AIX
New submission from Michael Haubenwallner: The problem raises during build already when trying to run setup.py, where ./python is unavailable to locate the 'encodings' module and aborts. It turns out that (some of) the filenames searched for are broken due to wrong conversion from unicode (across wchar_t) to char. Attached patch is for 3.2 only, should be obvious enough. Thanks! -- components: Interpreter Core files: python-3.2-aix-unicode_aswidechar.patch keywords: patch messages: 202429 nosy: haubi priority: normal severity: normal status: open title: Fix unicode_aswidechar() with 4byte unicode and 2byte wchar_t, for AIX type: crash versions: Python 3.2 Added file: http://bugs.python.org/file32544/python-3.2-aix-unicode_aswidechar.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19529 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19529] Fix unicode_aswidechar() with 4byte unicode and 2byte wchar_t, for AIX
David Edelsohn added the comment: LGTM -- nosy: +David.Edelsohn ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19529 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19529] Fix unicode_aswidechar() with 4byte unicode and 2byte wchar_t, for AIX
Terry J. Reedy added the comment: By 'crash' ('abort'), do you mean segfault (or Windows equivalent) or an exit with traceback? 3.2 only gets security patches. Do you think this is a security issue? Does the problem exist with the latest 3.3 or 3.4? -- nosy: +georg.brandl, terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19529 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19529] Fix unicode_aswidechar() with 4byte unicode and 2byte wchar_t, for AIX
STINNER Victor added the comment: The bug is obvious and patch looks good to me. The problem is that Python 3.2 doesn't accept bugfixes anymore, any security fixes. http://www.python.org/dev/peps/pep-0392/ 3.2.5 schedule (regression fix release) 3.2.5 final: May 13, 2013 -- Only security releases after 3.2.5 -- Georg Brandl, the release manager, may reconfirm that. How is Python packaged on AIX? Can you integrate your fix in your package for Python 3.2? The unicode type has been completly rewritten in Python 3.3, the bug was indirectly fixed during the rewrite. @Michael: can you confirm? You have to compile Python = 3.3 in debug mode and run the test suite (./python -m test -j0 -r). -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19529 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com