HexHive / HexType

HexType: Efficient Detection of Type Confusion Errors for C++
97 stars 20 forks source link

Option to throw SIGABRT on finding a Type Confusion #4

Closed Ayrx closed 6 years ago

Ayrx commented 6 years ago

Is it possible to add an option, possibly hidden behind an #ifdef, where the sanitizer throws a SIGABRT when it discovers a type confusion? This should make it play nice with fuzzers like afl-fuzz.

I managed to patch void printTypeConfusion at src/compiler-rt-files/hextype_report.cc to do this but there probably is a better place to call the abort().

jys0710 commented 6 years ago

Thanks for your comment. I updated this option as below commit (please check this :)).

Ayrx commented 6 years ago

That looks good! Thanks. :)