summaryrefslogtreecommitdiff
path: root/src/journal/journald-native.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-14 16:53:23 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-15 22:34:42 -0400
commit874bc134ac6504c45e94174e37af13ff21a6bfe2 (patch)
treed53dfbfa9fd082d119f3eb732e1a10ac9055bc61 /src/journal/journald-native.h
parent93c0969cf91c4e4973806181a6098b66a4e8e2f8 (diff)
Clear up confusion wrt. ENTRY_SIZE_MAX and DATA_SIZE_MAX
Define DATA_SIZE_MAX to mean the maximum size of a single field, and ENTRY_SIZE_MAX to mean the size of the whole entry, with some rough calculation of overhead over the payload. Check if entries are not too big when processing native journal messages.
Diffstat (limited to 'src/journal/journald-native.h')
-rw-r--r--src/journal/journald-native.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journald-native.h b/src/journal/journald-native.h
index 97808e746a..e82a5b87d5 100644
--- a/src/journal/journald-native.h
+++ b/src/journal/journald-native.h
@@ -25,7 +25,7 @@
/* Make sure not to make this smaller than the maximum coredump
* size. See COREDUMP_MAX in coredump.c */
-#define ENTRY_SIZE_MAX (1024*1024*768u)
+#define ENTRY_SIZE_MAX (1024*1024*770u)
#define DATA_SIZE_MAX (1024*1024*768u)
bool valid_user_field(const char *p, size_t l, bool allow_protected);