diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2021-08-06 09:56:22 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2021-08-06 10:08:00 -0400 |
commit | 835d0c737a7e04f30b3990249ce461999ea2cf3a (patch) | |
tree | d634553bc578af54cfc6f14ac24a59251a60b7a7 /firmware/export | |
parent | da45b37fac6d0d711cdafa0c73eabdc47e8c6a8b (diff) | |
download | rockbox-835d0c737a7e04f30b3990249ce461999ea2cf3a.tar.gz rockbox-835d0c737a7e04f30b3990249ce461999ea2cf3a.zip |
logf: Fix two issues with logf_panic_dump()
* It had a (read) buffer overflow when dumping the stuff on the back half of the buffer
* a highly questionable code construct was nuked
Change-Id: I7f6f119524fc2095f788fc9b3d356459955d3ace
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/logf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/export/logf.h b/firmware/export/logf.h index c8aaad06b4..7fbe5976a4 100644 --- a/firmware/export/logf.h +++ b/firmware/export/logf.h | |||
@@ -31,7 +31,7 @@ | |||
31 | 31 | ||
32 | #define MAX_LOGF_SIZE 16384 | 32 | #define MAX_LOGF_SIZE 16384 |
33 | 33 | ||
34 | extern unsigned char logfbuffer[MAX_LOGF_SIZE]; | 34 | extern unsigned char logfbuffer[MAX_LOGF_SIZE + 1]; |
35 | extern int logfindex; | 35 | extern int logfindex; |
36 | extern bool logfwrap; | 36 | extern bool logfwrap; |
37 | extern bool logfenabled; | 37 | extern bool logfenabled; |