summaryrefslogtreecommitdiff
path: root/src/lib/asan.c
diff options
context:
space:
mode:
authorHsuan Ting Chen <roccochen@chromium.org>2023-07-06 15:58:42 +0800
committerMatt DeVillier <matt.devillier@amd.corp-partner.google.com>2023-07-28 14:21:18 +0000
commitf4e3f15b44f0d0e117781d194f700cc19b3a88c7 (patch)
treefc61e7dbf1aed76810711c28c9e800f393b52159 /src/lib/asan.c
parent5dd832c5c8f4f661782019b526584a3aa5375a33 (diff)
lib: Introduce new parsing rules for ux_locales.c
Introduce new parsing rules for ux_locales.c:ux_locales_get_text(): * Add a version byte: PRERAM_LOCALES_VERSION_BYTE in the beginning. This provides more flexibility if we want to change the format of preram_locales region. * Add a new delimiter 0x01 between two string_names. This could fix the issue that 'string_name' and 'localized_string' might be the same. Also fix two bugs: 1. We would search for the language ID exceeding the range of current string_name. 2. In 'move_next()', we would exceed the 'size' due to the unconditional increase of offset. Finally, make some minor improvements to some existing comments. BUG=b:264666392, b:289995591 BRANCH=brya TEST=emerge-brya coreboot chromeos-bootimage Signed-off-by: Hsuan Ting Chen <roccochen@chromium.org> Change-Id: Ic0916a0badd7071fa2c43ee9cfc76ca5e79dbf8f Reviewed-on: https://review.coreboot.org/c/coreboot/+/76320 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/lib/asan.c')
0 files changed, 0 insertions, 0 deletions