diff options
author | Thomas Jarosch <tomj@simonv.com> | 2014-12-20 12:55:20 +0100 |
---|---|---|
committer | Thomas Jarosch <tomj@simonv.com> | 2014-12-20 12:55:20 +0100 |
commit | 2caf8870afd844c1368d21b98b3d1e4c0ee8bf10 (patch) | |
tree | 4e9282bb097c6522af21526ea14f9301616639de /apps/playlist.c | |
parent | 1ff5fd4d6b8d954b4a110c1c97a2e917c9e31055 (diff) | |
download | rockbox-2caf8870afd844c1368d21b98b3d1e4c0ee8bf10.tar.gz rockbox-2caf8870afd844c1368d21b98b3d1e4c0ee8bf10.zip |
text_viewer plugin: Fix two out-of-bounds buffer accesses
Test code:
--------------
int main(void)
{
static unsigned short extra_spaces[] = { 0, 0x3000 };
return sizeof(extra_spaces);
}
--------------
-> returns four instead of two.
cppcheck reported:
[rockbox/apps/plugins/text_viewer/tv_text_processor.c:180]: (error) Array 'break_chars[27]' acces
sed at index 53, which is out of bounds.
[rockbox/apps/plugins/text_viewer/tv_text_processor.c:195]: (error) Array 'extra_spaces[2]' acces
sed at index 3, which is out of bounds.
Change-Id: I66c305cc5c99e59e7c8e0aa9c86cecbe293ff037
Diffstat (limited to 'apps/playlist.c')
0 files changed, 0 insertions, 0 deletions