summaryrefslogtreecommitdiff
path: root/src/basic
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-11-12 11:42:16 +0100
committerGitHub <noreply@github.com>2018-11-12 11:42:16 +0100
commit8a26dae88fefdac91315e1fb94e88331c9987572 (patch)
treecb9b3429c82d3ada3a2ca36389948ab59b73f422 /src/basic
parent192602cb1e371e691e270cbe911b587b39e8d2c6 (diff)
parent9544a1ceb00cee1e8dd7044205c28e5155166190 (diff)
downloadsystemd-8a26dae88fefdac91315e1fb94e88331c9987572.tar.gz
systemd-8a26dae88fefdac91315e1fb94e88331c9987572.tar.bz2
systemd-8a26dae88fefdac91315e1fb94e88331c9987572.zip
Merge pull request #10736 from yuwata/coredump-comment
fuzz: fix oss-fuzz#8658
Diffstat (limited to 'src/basic')
-rw-r--r--src/basic/journal-importer.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/basic/journal-importer.h b/src/basic/journal-importer.h
index f49ce734a1..53354b7c78 100644
--- a/src/basic/journal-importer.h
+++ b/src/basic/journal-importer.h
@@ -11,9 +11,14 @@
#include "time-util.h"
/* Make sure not to make this smaller than the maximum coredump size.
- * See COREDUMP_MAX in coredump.c */
+ * See JOURNAL_SIZE_MAX in coredump.c */
+#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
#define ENTRY_SIZE_MAX (1024*1024*770u)
#define DATA_SIZE_MAX (1024*1024*768u)
+#else
+#define ENTRY_SIZE_MAX (1024*1024*13u)
+#define DATA_SIZE_MAX (1024*1024*11u)
+#endif
#define LINE_CHUNK 8*1024u
struct iovec_wrapper {