diff options
author | William Wilgus <wilgus.william@gmail.com> | 2024-06-05 01:03:13 -0400 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2024-06-05 19:13:47 -0400 |
commit | e54dedd8df7de98ccbc082afadf977f56ce8259f (patch) | |
tree | 6221ea0b4145aab4f1558cc621a119e05e187d29 /manual | |
parent | 74552d5404e6ada5a37042d8de789784d914a080 (diff) | |
download | rockbox-e54dedd8df7de98ccbc082afadf977f56ce8259f.tar.gz rockbox-e54dedd8df7de98ccbc082afadf977f56ce8259f.zip |
[coverity] fat.c fatlong_parse_entry() buffer overrun, fix warning basisname
BYTES2INT16() uses [i + 0] and [i + 1] therefore 30 is the max element
available in the raw byte array of size 32
(((uint32_t)array[pos+0] << 0) | \
((uint32_t)array[pos+1] << 8))
struct /* raw byte array */
{
uint8_t data[32];
};
basisname is only uninitialized in the . and .. dir entries
both are likely false positives but cheap enough to guard against
Change-Id: Iab3d186fed6050d2d61185071765a2c0feb9515f
Diffstat (limited to 'manual')
0 files changed, 0 insertions, 0 deletions