summaryrefslogtreecommitdiffstats
path: root/test/fuzz/fuzz-netdev-parser
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-04-10 07:26:23 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-04-10 11:18:11 +0200
commit86a3d44de5326fd4d714e90bf9012360f1d028a2 (patch)
tree7e918bce6da1293f990858f0720916022e50db34 /test/fuzz/fuzz-netdev-parser
parentUpdate UEFI URLs (#12260) (diff)
downloadsystemd-86a3d44de5326fd4d714e90bf9012360f1d028a2.tar.xz
systemd-86a3d44de5326fd4d714e90bf9012360f1d028a2.zip
network: fix use-of-uninitialized-value or null dereference
This fixes a bug introduced by 6ef5c881dd5568f08dc35013e24f7d857f36b207. Fixes oss-fuzz#14157 and oss-fuzz#14158.
Diffstat (limited to '')
-rw-r--r--test/fuzz/fuzz-netdev-parser/oss-fuzz-141575
-rw-r--r--test/fuzz/fuzz-netdev-parser/oss-fuzz-141585
2 files changed, 10 insertions, 0 deletions
diff --git a/test/fuzz/fuzz-netdev-parser/oss-fuzz-14157 b/test/fuzz/fuzz-netdev-parser/oss-fuzz-14157
new file mode 100644
index 0000000000..d3a65e1fed
--- /dev/null
+++ b/test/fuzz/fuzz-netdev-parser/oss-fuzz-14157
@@ -0,0 +1,5 @@
+[NetDev]
+Name=w
+Kind=wireguard
+[WireGuardPeer]
+PublicKey=e \ No newline at end of file
diff --git a/test/fuzz/fuzz-netdev-parser/oss-fuzz-14158 b/test/fuzz/fuzz-netdev-parser/oss-fuzz-14158
new file mode 100644
index 0000000000..6f6bf723b4
--- /dev/null
+++ b/test/fuzz/fuzz-netdev-parser/oss-fuzz-14158
@@ -0,0 +1,5 @@
+[NetDev]
+Name=w
+Kind=wireguard
+[WireGuard]
+PrivateKey=E \ No newline at end of file