[libyal] Added libfsntfs to libyal project configuration (#4248)

This commit is contained in:
Joachim Metz 2020-08-03 19:50:00 +02:00 committed by GitHub
parent 723ac5035b
commit 95d739322a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 2 deletions

View File

@ -33,6 +33,7 @@ RUN git clone --depth 1 https://github.com/libyal/libregf.git libregf
RUN git clone --depth 1 https://github.com/libyal/libscca.git libscca
RUN git clone --depth 1 https://github.com/libyal/libfsapfs.git libfsapfs
RUN git clone --depth 1 https://github.com/libyal/libfsntfs.git libfsntfs
RUN git clone --depth 1 https://github.com/libyal/libbde.git libbde

View File

@ -49,11 +49,19 @@ do
cp ossfuzz/${FUZZ_TARGET} ${OUT}/${PROJECT}_${FUZZ_TARGET}
# Download the test data if supported.
if test -d tests/input/public;
LIBYAL_TYPE_NAME=${FUZZ_TARGET/_fuzzer/};
if test -f tests/data/${LIBYAL_TYPE_NAME/}.1;
then
(cd tests/data && zip ${OUT}/${PROJECT}_${FUZZ_TARGET}_seed_corpus.zip ${LIBYAL_TYPE_NAME}.*)
elif test -d tests/input/public;
then
(cd tests/input/public && zip ${OUT}/${PROJECT}_${FUZZ_TARGET}_seed_corpus.zip *)
else
(cd tests/data && zip ${OUT}/${PROJECT}_${FUZZ_TARGET}_seed_corpus.zip ${FUZZ_TARGET/_fuzzer/}.*)
echo "Missing test data for seed corpus."
exit 1
fi
done
done