commit | 00a05e2975ab4658bcd89c0c0d76c9e3baa6956f | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Mon Feb 28 12:08:22 2022 -0700 |
committer | Tom Rini <trini@konsulko.com> | Wed Apr 06 14:01:42 2022 -0400 |
tree | aeec82c199fce85b9d4bd59c40030b8039b40ce9 | |
parent | db79e76ce9499b9d8fb527342e67171e3b09fecc [diff] |
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 <sjg@chromium.org>