[issue16060] Double decref and dereferencing after decref in int()

Serhiy Storchaka report at bugs.python.org
Thu Sep 27 10:46:58 CEST 2012


New submission from Serhiy Storchaka:

In function convert_integral_to_int() in file Objects/abstract.c integral double decrefed and dereferenced after decrefing if returned value of __int__() is not int. Python 3.3 only affected.

Here is a patch.

----------
components: Interpreter Core
files: float2int_dbl_decref.patch
keywords: patch
messages: 171371
nosy: benjamin.peterson, storchaka
priority: normal
severity: normal
status: open
title: Double decref and dereferencing after decref in int()
type: behavior
versions: Python 3.3
Added file: http://bugs.python.org/file27316/float2int_dbl_decref.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16060>
_______________________________________


More information about the Python-bugs-list mailing list