File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
container-builds/fuzzing-container Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 11crash-reports /
22output /
3+ corpus /
4+ artifacts /
Original file line number Diff line number Diff line change @@ -279,9 +279,16 @@ fuzz() {
279279 ARCHIVE_NAME=" ${fuzzer} .tar.gz"
280280 if compgen -G " $CORPUS /*" > /dev/null || compgen -G " $CRASHES /*" > /dev/null; then
281281 log " Packing corpus & crashes into $ARTIFACTS /$ARCHIVE_NAME "
282- tar -czf " $ARTIFACTS /$ARCHIVE_NAME " \
283- -C " $CORPUS " . \
284- -C " $CRASHES " .
282+
283+ STAGE=" $( mktemp -d) "
284+ mkdir -p " $STAGE /corpus" " $STAGE /crashes"
285+
286+ cp -a " $CORPUS /." " $STAGE /corpus/" 2> /dev/null || true
287+ cp -a " $CRASHES /." " $STAGE /crashes/" 2> /dev/null || true
288+
289+ tar -czf " $ARTIFACTS /$ARCHIVE_NAME " -C " $STAGE " corpus crashes
290+
291+ rm -rf " $STAGE "
285292 else
286293 log " Corpus & crashes are empty, skipping packing"
287294 fi
You can’t perform that action at this time.
0 commit comments