Skip to content
Commit 99aca9ef authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

abuf: Correct a corner case with abuf_realloc()



If the buffer is empty and not allocated, then abuf_realloc() tries to
copy invalid data. This happens because an incorrect change to use
memdup() was added after the original code was written.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 64aefc48
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment