Systemd/src/journal-remote
Zbigniew Jędrzejewski-Szmek 91db8ed5b2 journal-upload: add asserts that snprintf does not return an error
LGMT complains:
> The size argument of this snprintf call is derived from its return value,
> which may exceed the size of the buffer and overflow.

Let's make sure that r is non-negative. (This shouldn't occur unless the format
string is borked, so let's just add an assert.)
Then, let's reorder the comparison to avoid the potential overflow.
2018-10-02 15:36:24 +02:00
..
browse.html journal-gateway: use localStorage["cursor"] only when it has valid value 2018-06-27 14:50:23 +09:00
journal-gatewayd.c tree-wide: add clickable man page link to all --help texts 2018-08-20 11:33:04 +02:00
journal-remote-main.c tree-wide: add clickable man page link to all --help texts 2018-08-20 11:33:04 +02:00
journal-remote-parse.c Drop my copyright headers 2018-06-14 13:03:20 +02:00
journal-remote-parse.h Drop my copyright headers 2018-06-14 13:03:20 +02:00
journal-remote-write.c tree-wide: use DEFINE_TRIVIAL_REF_UNREF_FUNC() macro or friends where applicable 2018-08-27 14:01:46 +09:00
journal-remote-write.h tree-wide: use DEFINE_TRIVIAL_REF_UNREF_FUNC() macro or friends where applicable 2018-08-27 14:01:46 +09:00
journal-remote.c Drop my copyright headers 2018-06-14 13:03:20 +02:00
journal-remote.conf.in journal-remote: add license and reference to man page in conf files 2018-06-26 04:04:45 +09:00
journal-remote.h Drop my copyright headers 2018-06-14 13:03:20 +02:00
journal-upload-journal.c journal-upload: add asserts that snprintf does not return an error 2018-10-02 15:36:24 +02:00
journal-upload.c journal-upload: fix off-by-one in assert() 2018-09-25 11:22:13 +02:00
journal-upload.conf.in journal-remote: add license and reference to man page in conf files 2018-06-26 04:04:45 +09:00
journal-upload.h journal-upload: make watchdog state non-static 2016-04-05 20:28:56 -04:00
log-generator.py log-generator: make message size configurable, add short options 2018-05-31 13:04:18 +02:00
meson.build Drop my copyright headers 2018-06-14 13:03:20 +02:00
microhttpd-util.c Drop my copyright headers 2018-06-14 13:03:20 +02:00
microhttpd-util.h Drop my copyright headers 2018-06-14 13:03:20 +02:00