Searched refs:requiredsize (Results 1 – 2 of 2) sorted by relevance
1470 Py_ssize_t requiredsize; in unicode_decode_call_errorhandler() local1519 requiredsize = *outpos; in unicode_decode_call_errorhandler()1520 if (requiredsize > PY_SSIZE_T_MAX - repsize) in unicode_decode_call_errorhandler()1522 requiredsize += repsize; in unicode_decode_call_errorhandler()1523 if (requiredsize > PY_SSIZE_T_MAX - (insize - newpos)) in unicode_decode_call_errorhandler()1525 requiredsize += insize - newpos; in unicode_decode_call_errorhandler()1526 if (requiredsize > outsize) { in unicode_decode_call_errorhandler()1527 if (outsize <= PY_SSIZE_T_MAX/2 && requiredsize < 2*outsize) in unicode_decode_call_errorhandler()1528 requiredsize = 2*outsize; in unicode_decode_call_errorhandler()1529 if (_PyUnicode_Resize(output, requiredsize) < 0) in unicode_decode_call_errorhandler()[all …]
4275 Py_ssize_t requiredsize; in unicode_decode_call_errorhandler_wchar() local4331 requiredsize = *outpos; in unicode_decode_call_errorhandler_wchar()4332 if (requiredsize > PY_SSIZE_T_MAX - repwlen) in unicode_decode_call_errorhandler_wchar()4334 requiredsize += repwlen; in unicode_decode_call_errorhandler_wchar()4335 if (requiredsize > PY_SSIZE_T_MAX - (insize - newpos)) in unicode_decode_call_errorhandler_wchar()4337 requiredsize += insize - newpos; in unicode_decode_call_errorhandler_wchar()4339 if (requiredsize > outsize) { in unicode_decode_call_errorhandler_wchar()4340 if (outsize <= PY_SSIZE_T_MAX/2 && requiredsize < 2*outsize) in unicode_decode_call_errorhandler_wchar()4341 requiredsize = 2*outsize; in unicode_decode_call_errorhandler_wchar()4342 if (widechar_resize(buf, bufsize, requiredsize) < 0) { in unicode_decode_call_errorhandler_wchar()[all …]