Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 642d96a

Browse files
author
Sean Reifscheider
committed
- Issue #6624: yArg_ParseTuple with "s" format when parsing argument with
NUL: Bogus TypeError detail string.
1 parent beddd70 commit 642d96a

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1483,6 +1483,9 @@ Build
14831483
C-API
14841484
-----
14851485

1486+
- Issue #6624: yArg_ParseTuple with "s" format when parsing argument with
1487+
NUL: Bogus TypeError detail string.
1488+
14861489
- Issue #5175: PyLong_AsUnsignedLongLong now raises OverflowError
14871490
for negative arguments. Previously, it raised TypeError.
14881491

Python/getargs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ vgetargs1(PyObject *args, const char *format, va_list *p_va, int flags)
387387
flags, levels, msgbuf,
388388
sizeof(msgbuf), &freelist);
389389
if (msg) {
390-
seterror(i+1, msg, levels, fname, message);
390+
seterror(i+1, msg, levels, fname, msg);
391391
return cleanreturn(0, freelist);
392392
}
393393
}

0 commit comments

Comments
 (0)