]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[2.7] bpo-36291: Fix a possible reference leak in the json module (GH-12330)
authorstratakis <cstratak@redhat.com>
Thu, 14 Mar 2019 15:22:46 +0000 (16:22 +0100)
committerVictor Stinner <vstinner@redhat.com>
Thu, 14 Mar 2019 15:22:46 +0000 (16:22 +0100)
commitfb3336acfde3204fd01ce519ef24cc18a94dfa3f
treed9245e1f8849434899940f5457b39c8b5e10751b
parent2832ad53358e3fbc4bdc601b9f3fa04dd0deae46
[2.7] bpo-36291: Fix a possible reference leak in the json module (GH-12330)

Fix a reference leak in json if parsing a floating point number fails.

If PyOS_string_to_double() fails in _match_number_str():
decrement numstr ref counter.
Misc/NEWS.d/next/Library/2019-03-14-15-54-46.bpo-36291.UalHXP.rst [new file with mode: 0644]
Modules/_json.c