2 Star 0 Fork 0

mirrors_gnu/libredwg

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
llvmfuzz_standalone_tz.sh 928 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/sh
# assuming ../tz has all the ossfuzz testcases
# shellcheck disable=SC2034
set -e
make -s -j4 -C src
make -s -C examples llvmfuzz_standalone
old_ASAN_OPTIONS="$ASAN_OPTIONS"
run() {
f="$1"
# indxf still leaks
if echo "$f" | grep -i "\.dxf$"; then
export ASAN_OPTIONS=detect_leaks=0
elif echo "$f" | grep "/indxf"; then
export ASAN_OPTIONS=detect_leaks=0
else
export ASAN_OPTIONS=
fi
for OUT in $(seq 0 4); do
if [ "$OUT" = "0" ]; then
for VER in $(seq 0 16); do
OUT="$OUT" VER="$VER" timeout 30 examples/llvmfuzz_standalone "$f" || true
done
else
OUT="$OUT" timeout 30 examples/llvmfuzz_standalone "$f" || true
fi
done
}
if [ -z "$1" ]; then
for f in ../tz/*/*; do
run "$f"
done
else
for f in "$@"; do
run "$f"
done
fi
ASAN_OPTIONS="$old_ASAN_OPTIONS"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_gnu/libredwg.git
[email protected]:mirrors_gnu/libredwg.git
mirrors_gnu
libredwg
libredwg
master

搜索帮助