[issue34649] Modules/_json.c: Missing NULL checks in _encoded_const()

Alexey Izbyshev report at bugs.python.org
Wed Sep 12 16:42:59 EDT 2018


New submission from Alexey Izbyshev <izbyshev at ispras.ru>:

The return value of PyUnicode_InternFromString() is not checked for NULL and then dereferenced at three places in https://github.com/python/cpython/blob/0bd1a2dcfdf36b181385ae61361e7692f4ebb0fd/Modules/_json.c#L1369

Reported by Svace static analyzer.

----------
components: Extension Modules
messages: 325177
nosy: benjamin.peterson, berker.peksag, izbyshev, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Modules/_json.c: Missing NULL checks in _encoded_const()
type: behavior
versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34649>
_______________________________________


More information about the Python-bugs-list mailing list