New submission from Serhiy Storchaka <>:

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 

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 <>
Python-bugs-list mailing list

Reply via email to