Skip to content
Snippets Groups Projects
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: Simon Glass's avatarSimon Glass <sjg@chromium.org>
parent 64aefc48
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment