]> git.proxmox.com Git - mirror_lxc.git/commitdiff
oss-fuzz.sh: put the "lxc.net" keys in the seed corpus as well
authorEvgeny Vereshchagin <evvers@ya.ru>
Mon, 29 Mar 2021 11:38:38 +0000 (11:38 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Mon, 29 Mar 2021 11:49:01 +0000 (11:49 +0000)
It's just a follow-up to 0abcc213e2291d71 (where the "lxc.net" keys
were moved from config_jump_table to config_jump_table_net)

Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
src/tests/oss-fuzz.sh

index d8293e0a33dbdb2473f720920a8a578b54003cbf..eee3d01447a3ee3cc1aaaa47db2c298284ff83da 100755 (executable)
@@ -49,6 +49,10 @@ make -j$(nproc)
 $CC -c -o fuzz-lxc-config-read.o $CFLAGS -Isrc -Isrc/lxc src/tests/fuzz-lxc-config-read.c
 $CXX $CXXFLAGS $LIB_FUZZING_ENGINE fuzz-lxc-config-read.o src/lxc/.libs/liblxc.a -o $OUT/fuzz-lxc-config-read
 
-perl -lne 'if (/config_jump_table\[\]\s*=/../^}/) { /"([^"]+)"/ && print "$1=" }' src/lxc/confile.c >doc/examples/all-keys.conf
-[[ -s doc/examples/all-keys.conf ]]
+perl -lne 'if (/config_jump_table\[\]\s*=/../^}/) { /"([^"]+)"/ && print "$1=" }' src/lxc/confile.c >doc/examples/keys.conf
+[[ -s doc/examples/keys.conf ]]
+
+perl -lne 'if (/config_jump_table_net\[\]\s*=/../^}/) { /"([^"]+)"/ && print "lxc.net.$1=" }' src/lxc/confile.c >doc/examples/lxc-net-keys.conf
+[[ -s doc/examples/lxc-net-keys.conf ]]
+
 zip -r $OUT/fuzz-lxc-config-read_seed_corpus.zip doc/examples