commit | 601c2564003affcc83295e4cb6438a9e10d945a1 | [log] [tgz] |
---|---|---|
author | Yi-Yo Chiang <yochiang@google.com> | Thu Mar 04 17:30:59 2021 +0800 |
committer | Yi-Yo Chiang <yochiang@google.com> | Sun Mar 14 21:12:47 2021 +0800 |
tree | 9eb5b03c155b20219758841bf31f643a518a38c4 | |
parent | 16d6a07e819c943e2a5bb98cb4e620ccfc9c8ef1 [diff] |
mkbootimg: Add AsciizBytes argument parser AsciizBytes() parses a string argument and encodes it as an asciiz bytes. The encoded bytes object is ensured to have a null-terminator. Clarify in bootimg.h that c-string (text) fields are actually asciiz. Bug: 180792243 Bug: 180712476 Test: python3 -m doctest -v mkbootimg.py Test: atest --host mkbootimg_test Change-Id: I0ab6e6b3835225b619c3b4bea101b921ed1c7cbd