[issue32805] Possible integer overflow when call PyDTrace_GC_DONE()
Serhiy Storchaka
report at bugs.python.org
Fri Feb 9 04:27:39 EST 2018
New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:
PyDTrace_GC_DONE() accepts the argument of type int. But it is called with the sum of collected and uncollectable objects which has type Py_ssize_t and can be larger that maximal int.
This produces a compiler warning on Windows:
..\Modules\gcmodule.c(978): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data [D:\buildarea\3.x.bolen-windows10\build\PCbuild\pythoncore.vcxproj]
and looks as not false alarm.
----------
components: Interpreter Core
messages: 311870
nosy: lukasz.langa, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Possible integer overflow when call PyDTrace_GC_DONE()
type: behavior
versions: Python 3.7, Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32805>
_______________________________________
More information about the Python-bugs-list
mailing list