[issue4591] 32-bits unsigned user/group identifier
STINNER Victor
report at bugs.python.org
Wed Mar 25 01:34:53 CET 2009
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
pitrou> The documentation for PyArg_ParseTuple states that the
pitrou> "I" code doesn't do any overflow checking. Does it mean
pitrou> the input parameters can be silently truncated?
I'm sorry, but you're right :-) My patch was wrong. New patch
introduces functions parse_uid() and parse_gid() doing the right thing
to get an unsigned uid and gid. I reused the parsing code from
posix_setgroups().
----------
Added file: http://bugs.python.org/file13412/posix_unsigned_uid-2.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4591>
_______________________________________
More information about the Python-bugs-list
mailing list