[systemd-devel] [PATCH 0/2] V2 RFC: stack_size_guess() and LINE_MAX limitation for MESSAGE

harald at redhat.com harald at redhat.com
Mon Apr 15 09:41:50 PDT 2013


From: Harald Hoyer <harald at redhat.com>

Introduce stack_size_guess() and alloca_maybe_safe() and get rid of
the LINE_MAX limitation for MESSAGE in sd_journal_printv*()

V2: added missing test-stack.c

Harald Hoyer (2):
  util: add stack_size_guess() and alloca_maybe_safe()
  journal: get rid of LINE_MAX in sd_journal_printv*()

 CODING_STYLE                    |  7 +++
 Makefile.am                     |  7 +++
 configure.ac                    | 35 +++++++++++++++
 src/journal/journal-send.c      | 99 +++++++++++++++++++++++++++++++----------
 src/journal/test-journal-send.c | 92 +++++++++++++++++++++++++++++++++-----
 src/shared/test-stack.c         | 53 ++++++++++++++++++++++
 src/shared/util.c               | 47 +++++++++++++++++++
 src/shared/util.h               |  8 ++++
 8 files changed, 313 insertions(+), 35 deletions(-)
 create mode 100644 src/shared/test-stack.c

-- 
1.8.2



More information about the systemd-devel mailing list