]> git.dujemihanovic.xyz Git - u-boot.git/commit
board: amlogic: fix buffler overflow in seria, mac & usid read
authorNeil Armstrong <neil.armstrong@linaro.org>
Wed, 20 Mar 2024 08:46:11 +0000 (09:46 +0100)
committerNeil Armstrong <neil.armstrong@linaro.org>
Mon, 25 Mar 2024 08:16:19 +0000 (09:16 +0100)
commitd54f87f09a36ac20154955297b7c999b368b0443
tree5a943e4734d28d61aba8bd1e97be8c3eeaba59a2
parent65d5c367b00cb392bda560c3da1834979adcf137
board: amlogic: fix buffler overflow in seria, mac & usid read

While meson_sm_read_efuse() doesn't overflow, the string is not
zero terminated and env_set*() will buffer overflow and add random
characters to environment.

Acked-by: Viacheslav Bocharov <adeep@lexina.in>
Link: https://lore.kernel.org/r/20240320-u-boot-fix-p200-serial-v2-1-972be646a301@linaro.org
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
board/amlogic/beelink-s922x/beelink-s922x.c
board/amlogic/jethub-j100/jethub-j100.c
board/amlogic/jethub-j80/jethub-j80.c
board/amlogic/odroid-n2/odroid-n2.c
board/amlogic/p200/p200.c
board/amlogic/p201/p201.c
board/amlogic/p212/p212.c
board/amlogic/q200/q200.c
board/amlogic/vim3/vim3.c