How are you generating the calligraph from? Generally a compiler only acts on a per translation unit basis, so it couldn't form the complete program call graph across multiple files (hence why it's missing the edge that crosses the boundary between .C files)<br><br><div class="gmail_quote"><div dir="ltr">On Thu, Nov 8, 2018, 8:43 AM changze cui via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi there,<div> I am working with opt-6.0 and try to generate a call graph of libsndfile, but it seems the call graph doesn't cover all call relationship.</div><div> Actually, I am doing static analysis on <b>CVE-2014-8130</b>, which is a zero division on libtiff/tif_write.c TIFFWriteScanline. (see <a href="https://security-tracker.debian.org/tracker/CVE-2014-8130" target="_blank">https://security-tracker.debian.org/tracker/CVE-2014-8130</a>)</div><div> Theoretically, the main function in tiffdither.c will call fsdither, and fsdither will call TIFFWriteScanLine. main (tiffdither.c) -> fsdither (tiffdither.c) -> TIFFWriteScanLine (tif_write.c)</div><div> I want to get a call graph of the buggy program tiffdither but I find the call graph generated doesn't cover the call relationship from fsdither -> TIFFWriteScanLine.</div><div> For short, the call graph now shows TIFFWriteScanLine is only called by an external node.</div><div> I already compile tiffdither, and I upload it as an attached file. I also write a small python to help analyze the dot file.</div><div> Actually, I do opt-6.0 -analyze -dot-callgraph tiffdither.bc to generate the dot file. And then modify the dotPath in dotHandle.py. You can modify the python code to help analyze.</div><div> I can't figure out why this happens, and I will be very appreciate if you can help!</div><div><br></div><div>Thanks & Regards,</div><div>Chaz</div></div></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>