[issue6873] posix_lchown: possible overflow of uid, gid
Martin v. Löwis
report at bugs.python.org
Thu Sep 10 11:03:25 CEST 2009
Martin v. Löwis <martin at v.loewis.de> added the comment:
The patch is incorrect. Why do you think there is an overflow? There is
none in the call to ParseTuple: the i argument parser expects a signed
int*; passing a long* will break on systems where
sizeof(int)!=sizeof(long) (such as typical 64-bit Unix).
In addition, the *actual* overflow in the current code (casting to uid_t)
is not handled in the patch.
----------
nosy: +loewis
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6873>
_______________________________________
More information about the Python-bugs-list
mailing list