From c79050aa44b8836d836c5dd22a383a073c28b74b Mon Sep 17 00:00:00 2001 From: nicoo Date: Wed, 12 Feb 2020 13:42:22 +0100 Subject: Import upstream release 1.3.0 Closes: #951184 --- fuzz/harnesses/fuzz_bio | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 fuzz/harnesses/fuzz_bio (limited to 'fuzz/harnesses/fuzz_bio') diff --git a/fuzz/harnesses/fuzz_bio b/fuzz/harnesses/fuzz_bio new file mode 100755 index 0000000..f4bab19 --- /dev/null +++ b/fuzz/harnesses/fuzz_bio @@ -0,0 +1,29 @@ +#!/bin/bash -u +# Copyright (c) 2019 Yubico AB. All rights reserved. +# Use of this source code is governed by a BSD-style +# license that can be found in the LICENSE file. + +T=fuzz_bio + +sync() { + mkdir ${T} + ssh "${REMOTE}" "cd ${T} && tar -cf- corpus" | tar -C ${T} -xf- +} + +run() { + build/fuzz/fuzz_bio -max_len=17408 -runs=1 ${T}/corpus \ + 2>/dev/null 1>&2 +} + +case "$1" in +sync) + sync + ;; +run) + run + exit 0 + ;; +*) + echo unknown command "$1" + exit 1 +esac -- cgit v1.2.3