May 08, 2023 [Issue 23903] Demangling produces exponentially long output | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23903 --- Comment #1 from Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> --- This also applies to C++, where it seems to be a known problem. Google's Abseil limits demangling recursion with a "ComplexityGuard": https://chromium.googlesource.com/external/github.com/abseil/abseil-cpp/+/HEAD/absl/debugging/internal/demangle.cc#187 Some discussion in a blog post about implementing a C++ demangler in Rust: https://fitzgeraldnick.com/2017/02/22/cpp-demangle.html#what-makes-demangling-c-symbols-difficult -- |
Copyright © 1999-2021 by the D Language Foundation