summaryrefslogtreecommitdiff
path: root/include/command.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-11-02 00:15:39 +0300
committerTom Rini <trini@konsulko.com>2020-12-01 18:33:38 +0300
commit56331b2680d9fef7e60a88fa50d3e167f236c4a0 (patch)
treeda95bc331ed888120f361fc199d512a9b0e86156 /include/command.h
parente713124e352efe3141af6a4ffc83f6dba449a177 (diff)
downloadu-boot-56331b2680d9fef7e60a88fa50d3e167f236c4a0.tar.xz
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: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/command.h')
0 files changed, 0 insertions, 0 deletions