summaryrefslogtreecommitdiff
path: root/lib/efi_loader/efi_string.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2022-09-29 22:27:06 +0000
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2022-10-06 22:54:56 +0200
commit947d4f132b4d67a0d15859b354ed3fc71410105b (patch)
treea071fa95199db1e53162b1bd6fae4e28c17692f5 /lib/efi_loader/efi_string.c
parent2afa989fbecf25ea23902a9c480f179ba608785a (diff)
regmap: fix range checks
On the 32bit ARM sandbox 'dm ut dm_test_devm_regmap' fails with an abort. This is due to incorrect range checks. On 32-bit systems the size of size_t and int is both 32 bit. The expression (offset + val_len) is bound to overflow if offset == -1. Add an overflow check. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib/efi_loader/efi_string.c')
0 files changed, 0 insertions, 0 deletions