Skip to content

board: xilinx: board_name_decode() allocation fix and weak ft_board_setup()

Sriram Sriram u-boot 1 version Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 2 repliesApplied

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2board: xilinx: Check calloc() result in board_name_decode()board/xilinx/common/board.c+4 -10 replies
2/2board: xilinx: Make ft_board_setup() weakboard/xilinx/common/board.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] board: xilinx: board_name_decode() allocation fix and weak ft_board_setup()

v1 1/2 ("board: xilinx: Use strlcat() in board_name_decode()") is dropped from this series in favour of Pranav Tilak's patch, which fixes the same heap overflow without the extra strlen().

It is replaced here by a separate defect in the same function that neither version of the strlcat() conversion touches: the calloc() result is never checked (the test is on board_info), and that early return is the one exit path that does not free board_local_name.

2/2 is unchanged from v1 and is resent per Michal's request.

Sriram Sriram (2):
board: xilinx: Check calloc() result in board_name_decode()
board: xilinx: Make ft_board_setup() weak

 board/xilinx/common/board.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
Signature · 1 line
2.49.0