STINNER Victor added the comment: > And stat_filemode() should detect integer overflow.
Attached stat_mode_overflow.patch should fix this issue. (I would also suggest to inline fileperm() into stat_filemode(), or pass buf instead of &buf[1]. But you may not agree, as you want :-)) ---------- Added file: http://bugs.python.org/file30675/stat_mode_overflow.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11016> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com