dcavalca / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone
4bff0a
From 8918fcc041a7f58e55d6d2b40e8dc3c396819b67 Mon Sep 17 00:00:00 2001
4bff0a
From: Evgeny Vereshchagin <evvers@ya.ru>
4bff0a
Date: Sun, 2 Sep 2018 18:13:31 +0000
4bff0a
Subject: [PATCH] tests: add reproducers for several issues uncovered with
4bff0a
 fuzz-journald-syslog
4bff0a
4bff0a
This is a follow-up to a70f343cacf03ac51cdefb0d2e.
4bff0a
4bff0a
(cherry picked from commit 3311c74d0560e4aa6a223f5e288a5fbf2404d3fa)
4bff0a
4bff0a
Resolves: #1696224
4bff0a
---
4bff0a
 test/fuzz-regressions/fuzz-journald-syslog/github-9795 | 1 +
4bff0a
 test/fuzz-regressions/fuzz-journald-syslog/github-9820 | 1 +
4bff0a
 test/fuzz-regressions/fuzz-journald-syslog/github-9827 | 1 +
4bff0a
 test/fuzz-regressions/fuzz-journald-syslog/github-9829 | 1 +
4bff0a
 test/fuzz-regressions/meson.build                      | 4 ++++
4bff0a
 5 files changed, 8 insertions(+)
4bff0a
 create mode 100644 test/fuzz-regressions/fuzz-journald-syslog/github-9795
4bff0a
 create mode 100644 test/fuzz-regressions/fuzz-journald-syslog/github-9820
4bff0a
 create mode 100644 test/fuzz-regressions/fuzz-journald-syslog/github-9827
4bff0a
 create mode 100644 test/fuzz-regressions/fuzz-journald-syslog/github-9829
4bff0a
4bff0a
diff --git a/test/fuzz-regressions/fuzz-journald-syslog/github-9795 b/test/fuzz-regressions/fuzz-journald-syslog/github-9795
4bff0a
new file mode 100644
4bff0a
index 0000000000..0519ecba6e
4bff0a
--- /dev/null
4bff0a
+++ b/test/fuzz-regressions/fuzz-journald-syslog/github-9795
4bff0a
@@ -0,0 +1 @@
4bff0a
+ 
4bff0a
\ No newline at end of file
4bff0a
diff --git a/test/fuzz-regressions/fuzz-journald-syslog/github-9820 b/test/fuzz-regressions/fuzz-journald-syslog/github-9820
4bff0a
new file mode 100644
4bff0a
index 0000000000..55e1bb5967
4bff0a
--- /dev/null
4bff0a
+++ b/test/fuzz-regressions/fuzz-journald-syslog/github-9820
4bff0a
@@ -0,0 +1 @@
4bff0a
+<13>Aug  4 04:08:03 something-is-about-to-go-wrong:
4bff0a
\ No newline at end of file
4bff0a
diff --git a/test/fuzz-regressions/fuzz-journald-syslog/github-9827 b/test/fuzz-regressions/fuzz-journald-syslog/github-9827
4bff0a
new file mode 100644
4bff0a
index 0000000000..6787e487a4
4bff0a
--- /dev/null
4bff0a
+++ b/test/fuzz-regressions/fuzz-journald-syslog/github-9827
4bff0a
@@ -0,0 +1 @@
4bff0a
+<>
4bff0a
\ No newline at end of file
4bff0a
diff --git a/test/fuzz-regressions/fuzz-journald-syslog/github-9829 b/test/fuzz-regressions/fuzz-journald-syslog/github-9829
4bff0a
new file mode 100644
4bff0a
index 0000000000..22ded55aa2
4bff0a
--- /dev/null
4bff0a
+++ b/test/fuzz-regressions/fuzz-journald-syslog/github-9829
4bff0a
@@ -0,0 +1 @@
4bff0a
+:
4bff0a
\ No newline at end of file
4bff0a
diff --git a/test/fuzz-regressions/meson.build b/test/fuzz-regressions/meson.build
4bff0a
index 3a2c306492..74fd88cfcd 100644
4bff0a
--- a/test/fuzz-regressions/meson.build
4bff0a
+++ b/test/fuzz-regressions/meson.build
4bff0a
@@ -18,6 +18,10 @@ fuzz_regression_tests = '''
4bff0a
         fuzz-journal-remote/crash-96dee870ea66d03e89ac321eee28ea63a9b9aa45
4bff0a
         fuzz-journal-remote/oss-fuzz-8659
4bff0a
         fuzz-journal-remote/oss-fuzz-8686
4bff0a
+        fuzz-journald-syslog/github-9795
4bff0a
+        fuzz-journald-syslog/github-9820
4bff0a
+        fuzz-journald-syslog/github-9827
4bff0a
+        fuzz-journald-syslog/github-9829
4bff0a
         fuzz-unit-file/oss-fuzz-6884
4bff0a
         fuzz-unit-file/oss-fuzz-6885
4bff0a
         fuzz-unit-file/oss-fuzz-6886