systemd/0152-test-add-testcase-for-issue-10007-by-oss-fuzz.patch

38 lines
752 KiB
Diff
Raw Normal View History

From 684f05b8d7d491c7323302f35f4e28418732e558 Mon Sep 17 00:00:00 2001
From: Yu Watanabe <watanabe.yu+github@gmail.com>
Date: Wed, 22 Aug 2018 12:39:40 +0900
Subject: [PATCH] test: add testcase for issue 10007 by oss-fuzz
(cherry picked from commit a1a605f144e5635fdae57125a92032b3e5ebeca9)
Resolves: #1696224
---
test/fuzz-regressions/fuzz-unit-file/oss-fuzz-10007 | 6 ++++++
test/fuzz-regressions/meson.build | 1 +
2 files changed, 7 insertions(+)
create mode 100644 test/fuzz-regressions/fuzz-unit-file/oss-fuzz-10007
diff --git a/test/fuzz-regressions/fuzz-unit-file/oss-fuzz-10007 b/test/fuzz-regressions/fuzz-unit-file/oss-fuzz-10007
new file mode 100644
index 0000000000..893630c83f
--- /dev/null
+++ b/test/fuzz-regressions/fuzz-unit-file/oss-fuzz-10007
@@ -0,0 +1,6 @@
+socket
+ #
+[Socket]
+ListenStream=vsock u%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%s-fu/H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%s-fu/H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-fu%H%H0%Hs-f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z-regressions/meson.build
@@ -37,4 +37,5 @@ fuzz_regression_tests = '''
fuzz-unit-file/oss-fuzz-7004
fuzz-unit-file/oss-fuzz-8064
fuzz-unit-file/oss-fuzz-8827
+ fuzz-unit-file/oss-fuzz-10007
'''.split()