diff options
author | Léa Saviot <lea.saviot@numworks.com> | 2019-11-22 10:07:08 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-11-26 10:51:47 +1100 |
commit | bc129f1b84cc05ad92e6743b4f298e8aea5cbe50 (patch) | |
tree | d51b0771b654601895cfe27fbbf009d369e0c37b /docs/esp8266 | |
parent | a7bc4d1a1455a8a5cdea53d7a2caf03c9320f460 (diff) | |
download | micropython-bc129f1b84cc05ad92e6743b4f298e8aea5cbe50.tar.gz micropython-bc129f1b84cc05ad92e6743b4f298e8aea5cbe50.zip |
py/qstr: Raise exception in qstr_from_strn if str to intern is too long.
The string length being longer than the allowed qstr length can happen in
many locations, for example in the parser with very long variable names.
Without an explicit check that the length is within range (as done in this
patch) the code would exhibit crashes and strange behaviour with truncated
strings.
Diffstat (limited to 'docs/esp8266')
0 files changed, 0 insertions, 0 deletions