mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
- Issue #6624: yArg_ParseTuple with "s" format when parsing argument with
NUL: Bogus TypeError detail string.
This commit is contained in:
parent
beddd709b2
commit
642d96a647
2 changed files with 4 additions and 1 deletions
|
@ -1483,6 +1483,9 @@ Build
|
||||||
C-API
|
C-API
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
- Issue #6624: yArg_ParseTuple with "s" format when parsing argument with
|
||||||
|
NUL: Bogus TypeError detail string.
|
||||||
|
|
||||||
- Issue #5175: PyLong_AsUnsignedLongLong now raises OverflowError
|
- Issue #5175: PyLong_AsUnsignedLongLong now raises OverflowError
|
||||||
for negative arguments. Previously, it raised TypeError.
|
for negative arguments. Previously, it raised TypeError.
|
||||||
|
|
||||||
|
|
|
@ -387,7 +387,7 @@ vgetargs1(PyObject *args, const char *format, va_list *p_va, int flags)
|
||||||
flags, levels, msgbuf,
|
flags, levels, msgbuf,
|
||||||
sizeof(msgbuf), &freelist);
|
sizeof(msgbuf), &freelist);
|
||||||
if (msg) {
|
if (msg) {
|
||||||
seterror(i+1, msg, levels, fname, message);
|
seterror(i+1, msg, levels, fname, msg);
|
||||||
return cleanreturn(0, freelist);
|
return cleanreturn(0, freelist);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue