[New-bugs-announce] [issue22044] Premature Py_DECREF while generating a TypeError in call_tzinfo_method

Tom Flanagan report at bugs.python.org
Wed Jul 23 06:53:02 CEST 2014


New submission from Tom Flanagan:

call_tzinfo_method in Modules/_datetimemodule.c:900 calls Py_DECREF(offset)
before trying to use offset to generate a TypeError message.

This causes a crash if that was the last reference to offset and Py_DECREF clears it.

----------
components: Library (Lib)
files: python_bug.diff
keywords: patch
messages: 223722
nosy: Knio, belopolsky
priority: normal
severity: normal
status: open
title: Premature Py_DECREF while generating a TypeError in call_tzinfo_method
type: crash
versions: Python 3.3, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file36042/python_bug.diff

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


More information about the New-bugs-announce mailing list