[PATCH] D38855: Add a fuzz target for llvm's ItaniumDemangler.
Kostya Serebryany via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 12 11:01:55 PDT 2017
kcc added a comment.
Code LG, wait for Matt with cmake.
================
Comment at: tools/llvm-demangle-fuzzer/llvm-demangle-fuzzer.cpp:19
+ int status = 0;
+ char *demangle = llvm::itaniumDemangle(NullTerminatedString.c_str(), nullptr,
+ nullptr, &status);
----------------
style nit: llvm prefers this style:
if (char *demangle = foo())
free(demangle);
https://reviews.llvm.org/D38855
More information about the llvm-commits
mailing list