Boya Sun <[email protected]> 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 <[email protected]>
<http://bugs.python.org/issue5705>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com