board: xilinx: board_name_decode() allocation fix and weak ft_board_setup()
Status from this message: Applied.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | board: xilinx: Check calloc() result in board_name_decode()board/ | +4 | 0 replies | |
| 2/2 | board: xilinx: Make ft_board_setup() weakboard/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
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