diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-09-30 13:55:30 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-09-30 13:55:30 +0200 |
commit | 1904cd9dda6dadf396c1f28031346bdc035d420d (patch) | |
tree | ca0b9c637e5554446b6266b255c9e303407d3d7b /Python/thread.c | |
parent | 9a9e274a15370bb90a4856f9dabbc512fe565ce8 (diff) | |
parent | 8d799851fb876c167930eed7d0b23fada08a08d8 (diff) | |
download | cpython-1904cd9dda6dadf396c1f28031346bdc035d420d.tar.gz |
(Merge 3.4) faulthandler: test_gil_released() now uses _sigsegv() instead of
_read_null(), because _read_null() cannot be used on AIX. On AIX, reading from
NULL is allowed: the first page of memory is a mapped read-only on AIX.
_read_null() and _sigabrt() don't accept parameters.
Diffstat (limited to 'Python/thread.c')
-rw-r--r-- | Python/thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/thread.c b/Python/thread.c index d1cb0e6f9d..9eb5d12f50 100644 --- a/Python/thread.c +++ b/Python/thread.c @@ -431,7 +431,7 @@ PyThread_GetInfo(void) && defined(_CS_GNU_LIBPTHREAD_VERSION)) value = NULL; len = confstr(_CS_GNU_LIBPTHREAD_VERSION, buffer, sizeof(buffer)); - if (1 < len && len < sizeof(buffer)) { + if (1 < len && (size_t)len < sizeof(buffer)) { value = PyUnicode_DecodeFSDefaultAndSize(buffer, len-1); if (value == NULL) PyErr_Clear(); |