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

Reply via email to