[PATCH] D101823: Add fuzzer for Rust demangler

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 4 14:57:23 PDT 2021


dblaikie accepted this revision.
dblaikie added a comment.
This revision is now accepted and ready to land.

Looks good, thanks!



================
Comment at: llvm/tools/llvm-rust-demangle-fuzzer/llvm-rust-demangle-fuzzer.cpp:17-19
+  if (char *Demangled = llvm::rustDemangle(NullTerminatedString.c_str(),
+                                           nullptr, nullptr, &Status))
+    std::free(Demangled);
----------------
Since free(nullptr) is a no-op, you could skip the 'if' here if you like.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101823/new/

https://reviews.llvm.org/D101823



More information about the llvm-commits mailing list