[issue6873] posix_lchown: possible overflow of uid, gid

Gregory P. Smith report at bugs.python.org
Wed Dec 23 11:45:53 CET 2009

Gregory P. Smith <greg at krypto.org> added the comment:

I applied the same fix that was applied to chown in trunk r77007 for 
lchown and fchown.  Could you test it on a platform where it previously 

The existing code might still have issues if there are platforms where 
uid_t and gid_t are unsigned but not the same size as a long as at the 
moment it merely casts and does not test to see that the values are the 
same as the patch you have supplied here.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list