[New-bugs-announce] [issue2005] posixmodule expects sizeof(pid_t/gid_t/uid_t) <= sizeof(long)

Christian Heimes report at bugs.python.org
Sun Feb 3 20:58:45 CET 2008


New submission from Christian Heimes:

The posix module except that a pid_t, uid_t and gid_t always fit into a
long or can be parsed by "i". On some OSes and combination of 64bit
typess and 32bit long it's an invalid assumption.

The code should use long long where available or at least do some
overflow checks.

See r1983

----------
components: Extension Modules
keywords: easy
messages: 62026
nosy: tiran
priority: normal
severity: normal
status: open
title: posixmodule expects sizeof(pid_t/gid_t/uid_t) <= sizeof(long)
type: behavior
versions: Python 2.6, Python 3.0

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


More information about the New-bugs-announce mailing list