<div dir="ltr">Hi Mads<div><br></div><div>Thanks for your reply. Actually, I am completely new to clang. I know the theory of program analysis and I tried to find a powerful tool to carry out static analysis for my research. I need taint propagation,field sensitive, context sensitive,flow sensitive with implicit and explicit flows and pointer analysis. I think Clang should be available to develop such a tool. I am familiar with C, C++ linux programming. There are about one month left for me. Do you have any suggestions and do you  have any comments on the difficulty of implementation. Many Thanks</div><div><br></div><div>Regards</div><div>Muhui</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-12-31 6:48 GMT+08:00 Mads Ravn <span dir="ltr"><<a href="mailto:madsravn@gmail.com" target="_blank">madsravn@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Muhui,<div><br></div><div>It looks like clang has some kind of taint analysis already. I don't know if it fits your purpose. But have a look at DivZeroChecker.cpp and GenericTaintChecker.cpp in clang. There are also other files.</div><div><br></div><div>If these do not fit your purpose, I think you should be able to construct your own. If you have any questions about how to do this, please also elaborate on your experience with clang. It's much easier to guide you in the right direction, if we know your current level.</div><div><br></div><div>Best regards,</div><div>Mads Ravn</div></div><br><div class="gmail_quote"><div><div class="h5"><div dir="ltr">On Fri, Dec 30, 2016 at 9:46 PM Muhui Jiang via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Hi<div class="m_6786224778097200963gmail_msg"><br class="m_6786224778097200963gmail_msg"></div><div class="m_6786224778097200963gmail_msg">I am trying to use clang analyzer to conduct static taint analysis on the Linux kernel.  I am wondering whether clang has a static taint analysis framework or do I have to write a new one. If so, any suggestions or hints to write the static taint analysis tool. Many thanks </div><div class="m_6786224778097200963gmail_msg"><br class="m_6786224778097200963gmail_msg"></div><div class="m_6786224778097200963gmail_msg">Regards </div><div class="m_6786224778097200963gmail_msg">Muhui</div></div></div>
______________________________<wbr>_________________<br class="m_6786224778097200963gmail_msg">
cfe-dev mailing list<br class="m_6786224778097200963gmail_msg">
<a href="mailto:cfe-dev@lists.llvm.org" class="m_6786224778097200963gmail_msg" target="_blank">cfe-dev@lists.llvm.org</a><br class="m_6786224778097200963gmail_msg">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" class="m_6786224778097200963gmail_msg" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br class="m_6786224778097200963gmail_msg">
</blockquote></div>
</blockquote></div><br></div>