Lines Matching refs:argsize
396 size_t argsize = strlen(arg) + 1;
403 if (argsize > PY_SSIZE_T_MAX / sizeof(wchar_t)) {
406 res = PyMem_RawMalloc(argsize * sizeof(wchar_t));
446 size_t argsize;
464 argsize = strlen(arg);
466 argsize = _Py_mbstowcs(NULL, arg, 0);
468 if (argsize != DECODE_ERROR) {
469 if (argsize > PY_SSIZE_T_MAX / sizeof(wchar_t) - 1) {
472 res = (wchar_t *)PyMem_RawMalloc((argsize + 1) * sizeof(wchar_t));
477 count = _Py_mbstowcs(res, arg, argsize + 1);
494 argsize = strlen(arg) + 1;
495 if (argsize > PY_SSIZE_T_MAX / sizeof(wchar_t)) {
498 res = (wchar_t*)PyMem_RawMalloc(argsize * sizeof(wchar_t));
506 while (argsize) {
507 size_t converted = _Py_mbrtowc(out, (char*)in, argsize, &mbs);
529 argsize--;
539 argsize -= converted;