<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2017-06-19 12:55 GMT-07:00 Davide Italiano via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, Jun 19, 2017 at 12:48 PM, Rui Ueyama <<a href="mailto:ruiu@google.com">ruiu@google.com</a>> wrote:<br>
> We have clang/lib/AST/MicrosoftMangle.<wbr>cpp, so looks like what I should do is<br>
> to write code that do the reverse of it. One thing I should be careful is to<br>
> produce the exact same outputs as Microsoft's UnDecorateSymbolName function<br>
> would output so that the behavior doesn't change between Windows and<br>
> non-Windows platforms, but it probably shouldn't be hard.<br>
><br>
<br>
</span>Something you may want to keep in mind while prototyping is that<br>
writing a demangler in C++ (or any other unsafe language) is<br>
particularly annoying, so you may want to keep fuzzers and sanitizers<br>
always in your toolbox. The itanium demangler currently in tree<br>
suffers from all kinds of bugs/vulnerabilities, FWIW.<br></blockquote><div><br></div><div>I thought these have been fixed after being fuzzed by Kostya? Are there still new ones that popped-up that haven't been fixed?</div><div><br></div><div>-- </div><div>Mehdi</div><div><br></div></div></div></div>