HexHive / HexType

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

Understand HexType docs :( #7

Open malekremy opened 5 years ago

malekremy commented 5 years ago

Hi @jys0710

I run command:

$ git clone git@github.com:HexHive/HexType.git
$ ./build.sh
$ export HEXTYPE_LOG_PATH="/tmp/hextype"

But, i don;t underestand what happen here:

. Run HexType

Use the create-clang-typeinfo option or copy the pre-made type info (in the HexType/etc/clang_type_info) into the HexType path as typeinfo.txt file name
Use HexType/scripts/remove_duplicated_line.py in order to remove duplicated lines when you create new type information file
$ $BUILD_DIR/bin/clang++ test.cc -fsanitize=hextype

i run :

$ clang++ -fsanitize=hextype sample.cpp
g++: error: unrecognized argument to -fsanitize= option: ‘hextype’

Thanks,

jys0710 commented 5 years ago

Thanks for your interesting.

Did you use HexType's clang++ located in $BUILD_DIR/bin/clang++ (not default your machine's C++ compiler) ?

0xGSMonkey commented 2 years ago

I am having a similar problem and I am trying to figure it out. I can't seem to find clang++ in the $BUILD_DIR/bin/