summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/struct2.py
Commit message (Collapse)AuthorAge
* py/binary: Change internal bytearray typecode from 0 to 1.Damien George2017-08-17
| | | | | | | 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.
* tests/basics: Convert "sys.exit()" to "raise SystemExit".Paul Sokolovsky2017-06-10
|
* py/binary: mp_binary_get_size: Raise error on unsupported typecodes.Paul Sokolovsky2017-01-17
| | | | | Previouly, we had errors checked in callers, which led to duplicate code or missing checks in some places.
* tests/struct*: Make skippable.Paul Sokolovsky2016-12-19
|
* py/modstruct: Allow to have "0s" in struct format.Damien George2016-05-28