New submission from Serhiy Storchaka <storchaka+cpyt...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue32805> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com