-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
list index out of range when generate a graph by the gen_graph.py #6
Comments
Hi, thanks for your interest to K-scheduler. Could you provide file tiff2pdf_fix.ll and directory cfg_out_tiff2pdf to me? Binary compiled with wllvm (tiff2pdf) stores the corresponding llvm IR file in your local directory. I cannot extract the llvm IR file (tiff2pdf_fix.ll) with the single binary (tiff2pdf). |
Sorry for my carelessness. Attached are the related files :) |
I checked the binary and llvm IR file. It seems the binary is not compiled with LLVM coverage sanitizer (https://clang.llvm.org/docs/SanitizerCoverage.html) which instruments every edge and assigns a unique/non-collision edge ID. A quick check is to scan tiff2pdf_fix.ll and look for any occurrence of function "__sanitizer_cov_trace_pc_guard". A quick fix is to double-check if your CFLAGS and CXXFLAGS contains "-fsanitize-coverage=trace-pc-guard,no-prune" and recompile libtiff. For more detail about building a non-wrapper based binary, please check the tutorial at https://github.com/Dongdongshe/K-Scheduler/blob/main/afl_integration/build_example/README(non_wrapper%20based%20program).md. Let me know if you encounter any other issue. |
Thanks a lot! |
Hi, there
The
gen_graph.py
failed to generate a graph for some binaries in libtiff.command
python3 /home/kscheduler/afl_integration/build_example/gen_graph.py ./tiff2pdf_fix.ll cfg_out_tiff2pdf
Issue1
I added a if branch
"if data != []:
to fix this problem, and then face the following issue:tiff2pdf.zip
The text was updated successfully, but these errors were encountered: