summaryrefslogtreecommitdiffstats
path: root/firmware/export
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2021-08-06 09:56:22 -0400
committerSolomon Peachy <pizza@shaftnet.org>2021-08-06 10:08:00 -0400
commit835d0c737a7e04f30b3990249ce461999ea2cf3a (patch)
treed634553bc578af54cfc6f14ac24a59251a60b7a7 /firmware/export
parentda45b37fac6d0d711cdafa0c73eabdc47e8c6a8b (diff)
downloadrockbox-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.h2
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 @@
#define MAX_LOGF_SIZE 16384
-extern unsigned char logfbuffer[MAX_LOGF_SIZE];
+extern unsigned char logfbuffer[MAX_LOGF_SIZE + 1];
extern int logfindex;
extern bool logfwrap;
extern bool logfenabled;