[New-bugs-announce] [issue5932] _json: _convertPyInt_AsSsize_t() never raise any error

STINNER Victor report at bugs.python.org
Tue May 5 02:21:53 CEST 2009


New submission from STINNER Victor <victor.stinner at haypocalc.com>:

_convertPyInt_AsSsize_t() always return 1 (success) even on 
PyInt_AsSsize_t() error because of a ";" after the if...

    if (*size_ptr == -1 && PyErr_Occurred());
        return 1;

Attached patch fixes this issue, and add a regression test.

----------
components: Library (Lib)
files: json_error.patch
keywords: patch
messages: 87191
nosy: haypo
severity: normal
status: open
title: _json: _convertPyInt_AsSsize_t() never raise any error
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1
Added file: http://bugs.python.org/file13882/json_error.patch

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


More information about the New-bugs-announce mailing list