[PATCH] D66568: [GWP-ASan] Remove c++ standard lib dependency.
Peter Collingbourne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 21 17:25:00 PDT 2019
pcc added inline comments.
================
Comment at: compiler-rt/lib/gwp_asan/stack_trace_compressor_fuzzer.cpp:12
size_t BufferSize = kBytesForLargestVarInt * Size / sizeof(uintptr_t);
- std::vector<uint8_t> Buffer(BufferSize);
- std::vector<uint8_t> Buffer2(BufferSize);
+ uint8_t *Buffer = reinterpret_cast<uint8_t *>(malloc(BufferSize));
+ uint8_t *Buffer2 = reinterpret_cast<uint8_t *>(malloc(BufferSize));
----------------
Isn't this leaking memory?
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66568/new/
https://reviews.llvm.org/D66568
More information about the llvm-commits
mailing list