summaryrefslogtreecommitdiff
path: root/src/journal/journald-console.c
diff options
context:
space:
mode:
authorMatej Habrnal <mhabrnal@redhat.com>2016-09-26 17:28:58 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-09-26 11:28:58 -0400
commita5ca3649d34c5649ca04fc81000a80e476a81a64 (patch)
treebcb1f68b361eb671d116b15ab79100363367288e /src/journal/journald-console.c
parentd23a0044a3ba9ebff5e4e304152fd24ecf113524 (diff)
coredump: initialize coredump_size in submit_coredump() (#4219)
If ulimit is smaller than page_size(), function save_external_coredump() returns -EBADSLT and this causes skipping whole core dumping part in submit_coredump(). Initializing coredump_size to UINT64_MAX prevents evaluating a condition with uninitialized varialbe which leads to calling allocate_journal_field() with coredump_fd = -1 which causes aborting. Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
Diffstat (limited to 'src/journal/journald-console.c')
0 files changed, 0 insertions, 0 deletions