diff options
author | Damien George <damien.p.george@gmail.com> | 2017-08-17 16:16:11 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-08-17 16:19:35 +1000 |
commit | 025e5f2b339377ebc54ebc9cab2612946145a6fa (patch) | |
tree | c0238789e9ae5c6ae86789c34a55377bc176c5e4 /tests/feature_check | |
parent | e4ab404780dfa194864c579407a054cf6c75db3a (diff) | |
download | micropython-025e5f2b339377ebc54ebc9cab2612946145a6fa.tar.gz micropython-025e5f2b339377ebc54ebc9cab2612946145a6fa.zip |
py/binary: Change internal bytearray typecode from 0 to 1.
The value of 0 can't be used because otherwise mp_binary_get_size will let
a null byte through as the type code (intepreted as byterray). This can
lead to invalid type-specifier strings being let through without an error
in the struct module, and even buffer overruns.
Diffstat (limited to 'tests/feature_check')
0 files changed, 0 insertions, 0 deletions