• Kristian Otnes's avatar
    hush shell: Avoid string write overflow when entering max cmd length · 5c50a92b
    Kristian Otnes authored
    console_buffer array is defined to be CONFIG_SYS_CBSIZE + 1 long,
    whereas the_command array only CONFIG_SYS_CBSIZE long. Subsequent
    use of strcpy(the_command, console_buffer) will write final \0
    terminating byte outside the_command array when entering a command
    of max length.
    
    Signed-off-by: Kristian Otnes <kotnes <at> cisco <dot> com>
    5c50a92b
Name
Last commit
Last update
Licenses Loading commit data...
api Loading commit data...
arch Loading commit data...
board Loading commit data...
common Loading commit data...
disk Loading commit data...
doc Loading commit data...
drivers Loading commit data...
dts Loading commit data...
examples Loading commit data...
fs Loading commit data...
include Loading commit data...
lib Loading commit data...
nand_spl Loading commit data...
net Loading commit data...
post Loading commit data...
scripts Loading commit data...
spl Loading commit data...
test Loading commit data...
tools Loading commit data...
.checkpatch.conf Loading commit data...
.gitignore Loading commit data...
CREDITS Loading commit data...
Kbuild Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
README Loading commit data...
boards.cfg Loading commit data...
config.mk Loading commit data...
mkconfig Loading commit data...
snapshot.commit Loading commit data...