[PATCH 6/8] lib/hashtable.c: use memdup_nul() in himport_r

Simon Glass sjg at chromium.org
Mon Apr 13 16:57:24 CEST 2026


On 2026-04-12T19:59:41, Rasmus Villemoes <ravi at prevas.dk> wrote:
> lib/hashtable.c: use memdup_nul() in himport_r
>
> We have memdup_nul() for exactly this pattern of duplicating a block
> of memory and ensuring there's a nul byte after the copy.
>
> Signed-off-by: Rasmus Villemoes <ravi at prevas.dk>
>
> lib/hashtable.c | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list