summaryrefslogtreecommitdiff
path: root/drivers/bios_emulator
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2007-08-30 00:26:24 (GMT)
committerWolfgang Denk <wd@denx.de>2007-08-30 07:16:16 (GMT)
commit8f1bc28408ded213418d9bc0780c7d8fb8a03774 (patch)
treefbc2ccfd74de779645192fdcafd1a1e09f92bb85 /drivers/bios_emulator
parentd4a68f40a0389bb688477acfd23e957cb19443ad (diff)
downloadu-boot-fsl-qoriq-8f1bc28408ded213418d9bc0780c7d8fb8a03774.tar.xz
tftp: don't implicity trust the format of recevied packets
The TFTP OACK code trusts that the incoming packet is formated as ASCII text and can be processed by string functions. It also has a loop limit overflow bug where if the packet length is less than 8, it ends up looping over *all* of memory to find the 'blksize' string. This patch solves the problem by forcing the packet to be null terminated and using strstr() to search for the sub string. Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/bios_emulator')
0 files changed, 0 insertions, 0 deletions