Closed p0l42 closed 5 months ago
Could you provide an instrumented LLVM-IR?
/path/to/ko-clang [... other args] -S -emit-llvm -o 1.ll
SymSan does not automatically symbolize everything. If you want to symbolize bytes read from 1.txt
, you need to tell SymSayn:
TAINT_OPTIONS="taint_file=1.txt" ./1 1.txt
Thanks a lot! It works!
Hello, I've tried to dump dfsan_label when tracing to see it's 0 or not. I've modified the code __taint_trace_cmp@fastgen as follows:
Also, I modified code in taint pass to see whether getShadow return a zero shadow when instrumenting switchinst. It seems it's not zero shadow. However, when I run the instrumented prog, the result show all of labels are 0, I don't know what happen, should I set some envs else? (I've set KO_USE_FASTGEN=1)
I've post my test file here, looking forward to your reply, thanks. 1.zip