diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-03-16 22:22:01 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-03-24 23:40:07 +0000 |
commit | f7a341555d1addb49a8b7084977ce7b44b4aa019 (patch) | |
tree | e95ce7bfeff2841eb734a7215cfdd6734ad73134 /firmware/export/config.h | |
parent | 6a6c6083fa69575334282d0c8f5dd688a2282188 (diff) | |
download | rockbox-f7a341555d1addb49a8b7084977ce7b44b4aa019.tar.gz rockbox-f7a341555d1addb49a8b7084977ce7b44b4aa019.zip |
fiiom3k: trim OF kernel arguments to fix boot hangs
The M3K's kernel has an incredibly stupid function that mangles the
kernel args and copies them to a 100-byte buffer without any kind of
bounds checking. So, if the kernel arguments are more than 99 chars
the stack may be corrupted, sometimes crashing the kernel.
Fortunately, most of the arguments the OF uses are useless, and the
truly necessary arguments fit within the absurd 99-char limit.
Change-Id: I01ef4513298f79d3c08538239802c21e88509631
Diffstat (limited to 'firmware/export/config.h')
0 files changed, 0 insertions, 0 deletions