ZhangZhuoSJTU / StochFuzz

Sound and Cost-effective Fuzzing of Stripped Binaries by Incremental and Stochastic Rewriting
GNU General Public License v3.0
184 stars 6 forks source link

bug in build.sh #2

Closed Nova-xiao closed 3 years ago

Nova-xiao commented 3 years ago

I tried to install StochFuzz with build.sh, and the clang version in my environment is 10.0.0, but this script failed with message: "clang-6.0 or a newer version is required". So I checked this script and find that the regular expression that you used when matching with clang version output, is not correct if the version number is bigger than 9: clang --version | head -n 1 | grep -o -E "[[:digit:]].[[:digit:]].[[:digit:]]" | uniq | sort Maybe this is better: clang --version | head -n 1 | grep -o -E "[0-9]{1,2}.[0-9].[0-9]" | uniq | sort

ZhangZhuoSJTU commented 3 years ago

Hi, thanks for reporting the bug. I have pushed a commit to fix it. Please let me know if there is any further problem.