commit | e134a7fe36652434c2ccffc4ebab2ec2031d1505 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Mon Mar 30 10:09:31 2015 +0200 |
committer | Victor Stinner <victor.stinner@gmail.com> | Mon Mar 30 10:09:31 2015 +0200 |
tree | 9eea060bf19c856881f438860eb2abdbe41f2bdd | |
parent | 2e1c4e5db2894ec4322f917e9babc4e37dca9244 [diff] [blame] |
Issue #23752: _Py_fstat() is now responsible to raise the Python exception Add _Py_fstat_noraise() function when a Python exception is not welcome.
diff --git a/Python/marshal.c b/Python/marshal.c index 3472882..f89cd04 100644 --- a/Python/marshal.c +++ b/Python/marshal.c
@@ -1486,7 +1486,7 @@ getfilesize(FILE *fp) { struct _Py_stat_struct st; - if (_Py_fstat(fileno(fp), &st) != 0) + if (_Py_fstat_noraise(fileno(fp), &st) != 0) return -1; #if SIZEOF_OFF_T == 4 else if (st.st_size >= INT_MAX)