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 <rep...@bugs.python.org>
<http://bugs.python.org/issue18470>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to