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

setexpr: Split the core logic into its own function



At present this function always allocates a large amount of stack, and
selects its own size for buffers. This makes it hard to test the code
for buffer overflow.

Separate out the inner logic of the substitution so that tests can call
this directly. This will allow checking that the algorithm does not
overflow the buffer.

Fix up one of the error lines at the same time, since it should be
printing nbuf_size, not data_size.

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