[llvm-dev] VC C++ demangler

Mehdi AMINI via llvm-dev llvm-dev at lists.llvm.org
Mon Jun 19 13:37:41 PDT 2017


2017-06-19 12:55 GMT-07:00 Davide Italiano via llvm-dev <
llvm-dev at lists.llvm.org>:

> On Mon, Jun 19, 2017 at 12:48 PM, Rui Ueyama <ruiu at google.com> wrote:
> > We have clang/lib/AST/MicrosoftMangle.cpp, so looks like what I should
> do is
> > to write code that do the reverse of it. One thing I should be careful
> is to
> > produce the exact same outputs as Microsoft's UnDecorateSymbolName
> function
> > would output so that the behavior doesn't change between Windows and
> > non-Windows platforms, but it probably shouldn't be hard.
> >
>
> Something you may want to keep in mind while prototyping is that
> writing a demangler in C++ (or any other unsafe language) is
> particularly annoying, so you may want to keep fuzzers and sanitizers
> always in your toolbox. The itanium demangler currently in tree
> suffers from all kinds of bugs/vulnerabilities, FWIW.
>

I thought these have been fixed after being fuzzed by Kostya? Are there
still new ones that popped-up that haven't been fixed?

-- 
Mehdi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170619/5d9372f1/attachment.html>


More information about the llvm-dev mailing list