Skip to content
Commit a2872c3a authored by Flavio Ceolin's avatar Flavio Ceolin Committed by Johan Hedberg
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 c97e1aaf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment