[issue33279] Py_BuildValue is causing crashes with the "L" and "K" format characters when upcasting sub 64-bit integer types

Serhiy Storchaka report at bugs.python.org
Sat Apr 14 14:46:04 EDT 2018


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

This isn't a bug in CPython API. You need to pass arguments of correct type to functions with a variable number of parameters. The compiler doesn't know what type is expected and can't coerce the value automatically. The same undefined behavior your can see with say printf().

----------
nosy: +serhiy.storchaka
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33279>
_______________________________________


More information about the Python-bugs-list mailing list