[issue1789] assumption about unsigned long byte size in struct module usage

Gregory P. Smith report at bugs.python.org
Wed Jan 23 22:49:49 CET 2008


Gregory P. Smith added the comment:

A significant portion of the python standard library is broken due to
incorrect use of the struct module on LP64 platforms.  I'm attaching a
patch that should clean it up.

I need Mac OS X people to confirm that the Mac changes are sane.

Its possible that the Lib/posixfile.py change could be a candidate for a
2.4 security backport if it turns out the _posixfile_.lock()
implementation is indeed broken when a 64bit python is used on some
platforms.  I'll leave that up to the 2.4 releaser to decide.

----------
components: +Library (Lib)
keywords: +64bit, patch -easy
priority: normal -> high
severity: normal -> major
title: incorrect assumption about unsigned long byte size -> assumption about unsigned long byte size in struct module usage
versions: +Python 2.4, Python 2.5, Python 2.6
Added file: http://bugs.python.org/file9276/struct-long-nuke-01.diff

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1789>
__________________________________


More information about the Python-bugs-list mailing list