Skip to content
Commit 9d3186c4 authored by Flavio Ceolin's avatar Flavio Ceolin Committed by David Leach
Browse files

shell: utils: Fix buffer overrun in shell_spaces_trim



The third argument in memmove can possible be greater than remaining
buffer size. Just ensuring that memmove will changes bytes only inside
the string buffer and nothing else.

Signed-off-by: default avatarFlavio Ceolin <flavio.ceolin@intel.com>
parent 2649e4c0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment