diff options
author | Steve Dower <steve.dower@microsoft.com> | 2015-04-12 04:26:43 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2015-04-12 04:26:43 (GMT) |
commit | a1c7e727c8fd9a9bf924ecc20c7d6892d19aa99e (patch) | |
tree | eb7fd0928896a5ec14f0d485cd18dc6bea573cd9 /Modules/_io | |
parent | 8fc8980c96f58a7f06e4e3133735807bd245c658 (diff) | |
download | cpython-a1c7e727c8fd9a9bf924ecc20c7d6892d19aa99e.zip cpython-a1c7e727c8fd9a9bf924ecc20c7d6892d19aa99e.tar.gz cpython-a1c7e727c8fd9a9bf924ecc20c7d6892d19aa99e.tar.bz2 |
Issue #23668: Suppresses invalid parameter handler around chsize calls.
Diffstat (limited to 'Modules/_io')
-rw-r--r-- | Modules/_io/fileio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_io/fileio.c b/Modules/_io/fileio.c index 186319b..af93499 100644 --- a/Modules/_io/fileio.c +++ b/Modules/_io/fileio.c @@ -880,12 +880,14 @@ fileio_truncate(fileio *self, PyObject *args) } Py_BEGIN_ALLOW_THREADS + _Py_BEGIN_SUPPRESS_IPH errno = 0; #ifdef MS_WINDOWS ret = _chsize_s(fd, pos); #else ret = ftruncate(fd, pos); #endif + _Py_END_SUPPRESS_IPH Py_END_ALLOW_THREADS if (ret != 0) { |