[issue5705] os.getpwent returns unsigned 32bit value, os.setuid refuses it
Boya Sun
report at bugs.python.org
Wed Sep 2 00:34:54 CEST 2009
Boya Sun <boya.sun at case.edu> added the comment:
Another potential bug discovered in posixmodule.c in the function
posix_lchown:
posix_lchown(PyObject *self, PyObject *args)
{
...
int uid, gid;
...
if (!PyArg_ParseTuple(args, "etii:lchown",
Py_FileSystemDefaultEncoding, &path,
&uid, &gid))
...
}
uid and gid could also cause over flow. Patch attached.
Hope some one can comment on the patch, thanks a lot!
----------
keywords: +patch
nosy: +boya
Added file: http://bugs.python.org/file14816/patch_5705.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5705>
_______________________________________
More information about the Python-bugs-list
mailing list