mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
Issue #13461: Fix a crash in the TextIOWrapper.tell method on 64-bit platforms.
Patch by Yogesh Chaudhari.
This commit is contained in:
parent
98985a1980
commit
ec67d187ee
2 changed files with 4 additions and 1 deletions
|
|
@ -66,6 +66,9 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #13461: Fix a crash in the TextIOWrapper.tell method on 64-bit
|
||||||
|
platforms. Patch by Yogesh Chaudhari.
|
||||||
|
|
||||||
- Issue #18777: The ssl module now uses the new CRYPTO_THREADID API of
|
- Issue #18777: The ssl module now uses the new CRYPTO_THREADID API of
|
||||||
OpenSSL 1.0.0+ instead of the deprecated CRYPTO id callback function.
|
OpenSSL 1.0.0+ instead of the deprecated CRYPTO id callback function.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2370,7 +2370,7 @@ textiowrapper_tell(textio *self, PyObject *args)
|
||||||
while (input < input_end) {
|
while (input < input_end) {
|
||||||
Py_ssize_t n;
|
Py_ssize_t n;
|
||||||
|
|
||||||
DECODER_DECODE(input, 1, n);
|
DECODER_DECODE(input, (Py_ssize_t)1, n);
|
||||||
/* We got n chars for 1 byte */
|
/* We got n chars for 1 byte */
|
||||||
chars_decoded += n;
|
chars_decoded += n;
|
||||||
cookie.bytes_to_feed += 1;
|
cookie.bytes_to_feed += 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue