[New-bugs-announce] [issue18470] tokenizer.c does not handle new_string() failure

STINNER Victor report at bugs.python.org
Tue Jul 16 03:32:23 CEST 2013


New submission from STINNER Victor:

Callers of the new_string() function do not check if the function succeed or not. Python does crash if the function failed, for example in get_coding_spec():

                char* r = new_string(begin, t - begin);
                char* q = get_normal_name(r);

Using pytracemalloc tool, it's easy to tricker this issue (ex: using test_future or test_parser): see issue #18408.

----------
messages: 193143
nosy: haypo
priority: normal
severity: normal
status: open
title: tokenizer.c does not handle new_string() failure
versions: Python 3.4

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


More information about the New-bugs-announce mailing list