• 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
..
spl Loading commit data...
Makefile Loading commit data...
bedbug.c Loading commit data...
board_f.c Loading commit data...
board_r.c Loading commit data...
bootstage.c Loading commit data...
bouncebuf.c Loading commit data...
cmd_aes.c Loading commit data...
cmd_ambapp.c Loading commit data...
cmd_bdinfo.c Loading commit data...
cmd_bedbug.c Loading commit data...
cmd_bmp.c Loading commit data...
cmd_boot.c Loading commit data...
cmd_bootldr.c Loading commit data...
cmd_bootm.c Loading commit data...
cmd_bootmenu.c Loading commit data...
cmd_bootstage.c Loading commit data...
cmd_cache.c Loading commit data...
cmd_cbfs.c Loading commit data...
cmd_clk.c Loading commit data...
cmd_console.c Loading commit data...
cmd_cplbinfo.c Loading commit data...
cmd_cramfs.c Loading commit data...
cmd_dataflash_mmc_mux.c Loading commit data...
cmd_date.c Loading commit data...
cmd_dcr.c Loading commit data...
cmd_demo.c Loading commit data...
cmd_dfu.c Loading commit data...
cmd_diag.c Loading commit data...
cmd_disk.c Loading commit data...
cmd_display.c Loading commit data...
cmd_dtt.c Loading commit data...
cmd_echo.c Loading commit data...
cmd_eeprom.c Loading commit data...
cmd_elf.c Loading commit data...
cmd_exit.c Loading commit data...
cmd_ext2.c Loading commit data...
cmd_ext4.c Loading commit data...
cmd_fat.c Loading commit data...
cmd_fdc.c Loading commit data...
cmd_fdt.c Loading commit data...
cmd_fitupd.c Loading commit data...
cmd_flash.c Loading commit data...
cmd_fpga.c Loading commit data...
cmd_fpgad.c Loading commit data...
cmd_fs.c Loading commit data...
cmd_fuse.c Loading commit data...
cmd_gettime.c Loading commit data...
cmd_gpio.c Loading commit data...
cmd_gpt.c Loading commit data...
cmd_hash.c Loading commit data...
cmd_help.c Loading commit data...
cmd_i2c.c Loading commit data...
cmd_ide.c Loading commit data...
cmd_immap.c Loading commit data...
cmd_ini.c Loading commit data...
cmd_io.c Loading commit data...
cmd_irq.c Loading commit data...
cmd_itest.c Loading commit data...
cmd_jffs2.c Loading commit data...
cmd_ldrinfo.c Loading commit data...
cmd_led.c Loading commit data...
cmd_license.c Loading commit data...
cmd_load.c Loading commit data...
cmd_log.c Loading commit data...
cmd_lzmadec.c Loading commit data...
cmd_mac.c Loading commit data...
cmd_md5sum.c Loading commit data...
cmd_mdio.c Loading commit data...
cmd_mem.c Loading commit data...
cmd_mfsl.c Loading commit data...
cmd_mii.c Loading commit data...
cmd_misc.c Loading commit data...
cmd_mmc.c Loading commit data...
cmd_mmc_spi.c Loading commit data...
cmd_mp.c Loading commit data...
cmd_mtdparts.c Loading commit data...
cmd_nand.c Loading commit data...
cmd_net.c Loading commit data...
cmd_nvedit.c Loading commit data...
cmd_onenand.c Loading commit data...
cmd_otp.c Loading commit data...
cmd_part.c Loading commit data...
cmd_pci.c Loading commit data...
cmd_pcmcia.c Loading commit data...
cmd_portio.c Loading commit data...
cmd_pxe.c Loading commit data...
cmd_read.c Loading commit data...
cmd_reginfo.c Loading commit data...
cmd_reiser.c Loading commit data...
cmd_sandbox.c Loading commit data...
cmd_sata.c Loading commit data...
cmd_scsi.c Loading commit data...
cmd_setexpr.c Loading commit data...
cmd_sf.c Loading commit data...
cmd_sha1sum.c Loading commit data...
cmd_softswitch.c Loading commit data...
cmd_sound.c Loading commit data...
cmd_source.c Loading commit data...
cmd_spi.c Loading commit data...
cmd_spibootldr.c Loading commit data...
cmd_spl.c Loading commit data...
cmd_strings.c Loading commit data...
cmd_terminal.c Loading commit data...
cmd_test.c Loading commit data...
cmd_thordown.c Loading commit data...
cmd_time.c Loading commit data...
cmd_tpm.c Loading commit data...
cmd_trace.c Loading commit data...
cmd_tsi148.c Loading commit data...
cmd_ubi.c Loading commit data...
cmd_ubifs.c Loading commit data...
cmd_universe.c Loading commit data...
cmd_unzip.c Loading commit data...
cmd_usb.c Loading commit data...
cmd_usb_mass_storage.c Loading commit data...
cmd_version.c Loading commit data...
cmd_ximg.c Loading commit data...
cmd_yaffs2.c Loading commit data...
cmd_zfs.c Loading commit data...
cmd_zip.c Loading commit data...
command.c Loading commit data...
console.c Loading commit data...
cros_ec.c Loading commit data...
ddr_spd.c Loading commit data...
dlmalloc.c Loading commit data...
dlmalloc.src Loading commit data...
edid.c Loading commit data...
env_attr.c Loading commit data...
env_callback.c Loading commit data...
env_common.c Loading commit data...
env_dataflash.c Loading commit data...
env_eeprom.c Loading commit data...
env_embedded.c Loading commit data...
env_fat.c Loading commit data...
env_flags.c Loading commit data...
env_flash.c Loading commit data...
env_mmc.c Loading commit data...
env_nand.c Loading commit data...
env_nowhere.c Loading commit data...
env_nvram.c Loading commit data...
env_onenand.c Loading commit data...
env_remote.c Loading commit data...
env_sf.c Loading commit data...
env_ubi.c Loading commit data...
exports.c Loading commit data...
fdt_support.c Loading commit data...
flash.c Loading commit data...
hash.c Loading commit data...
hush.c Loading commit data...
hwconfig.c Loading commit data...
image-fdt.c Loading commit data...
image-fit.c Loading commit data...
image-sig.c Loading commit data...
image.c Loading commit data...
iomux.c Loading commit data...
kallsyms.c Loading commit data...
kgdb.c Loading commit data...
kgdb_stubs.c Loading commit data...
lcd.c Loading commit data...
lynxkdi.c Loading commit data...
main.c Loading commit data...
memsize.c Loading commit data...
menu.c Loading commit data...
miiphyutil.c Loading commit data...
modem.c Loading commit data...
s_record.c Loading commit data...
splash.c Loading commit data...
stdio.c Loading commit data...
system_map.c Loading commit data...
update.c Loading commit data...
usb.c Loading commit data...
usb_hub.c Loading commit data...
usb_kbd.c Loading commit data...
usb_storage.c Loading commit data...
xyzModem.c Loading commit data...