fuzz: add test case for oss-fuzz #6897 and a work-around
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 16 Mar 2018 11:02:54 +0000 (12:02 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 17 Mar 2018 08:48:22 +0000 (09:48 +0100)
commit1c56d501098f5559c7b97b693dd9be0a01bdfdc9
treef2bed5fa1d1a8b15ddcd4f86c35793f784c5b111
parent10062bbc35a28e95897f66fa5f4991b9b1f9df5d
fuzz: add test case for oss-fuzz #6897 and a work-around

The orignal reproducer from oss-fuzz depends on the hostname (via %H and %c).
The hostname needs a dash for msan to report this, so a simpler case from
@evverx with the dash hardcoded is also added.

The issue is a false positive from msan, which does not instruct stpncpy
(https://github.com/google/sanitizers/issues/926). Let's add a work-around
until this is fixed.
src/basic/cgroup-util.c
test/fuzz-regressions/fuzz-unit-file/oss-fuzz-6897 [new file with mode: 0644]
test/fuzz-regressions/fuzz-unit-file/oss-fuzz-6897-evverx [new file with mode: 0644]
test/fuzz-regressions/meson.build