HexHive / HexType

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

Analysis results do not show lines of the source code. #11

Open tanhuang01 opened 7 months ago

tanhuang01 commented 7 months ago

Hi @jys0710 :

I recently cloned and built HexType from the repository, and everything seemed to go smoothly. Here are the steps I followed:

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

     After setting everything up, I used HexType to compile a test file:

$ BUILD_DIR/bin/clang++ test.cc -fsanitize=hextype

     This produced an executable a.out. However, when I ran the executable:

$ ./a.out

     The output was different from what I expected, based on the descriptions in your paper. Here's what I got:

== HexType Type Confusion Report ==
3 4695655070575894917 9029972361605578882
./simple.out() [0x4051d9]
./simple.out(__type_casting_verification+0x351) [0x402c81]
./simple.out(main+0x80) [0x405b30]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7fbf0e5bf0b3]
./simple.out(_start+0x2e) [0x4021ee]

     I noticed that the output does not include the number of lines from the source file, as mentioned in your paper. Could you please advise if there's something I may have missed, or if there's an additional step I need to take to achieve the expected results?

Thank you very much for your assistance!