[PATCH] D39466: [fuzzer] Script to detect unbalanced allocation in -trace_malloc output

Kostya Serebryany via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 31 11:50:10 PDT 2017


kcc added a comment.

Not sure how frequently we will need this. 
Also, if we do need it frequently, wouldn't it be better to put this functionality in libFuzzer itself?



================
Comment at: compiler-rt/lib/fuzzer/scripts/unbalanced_allocs.py:2
+#!/usr/bin/env python
+#===- lib/fuzzer/scripts/unbalanced_allocs.py --------------------------------------===#
+#
----------------
80 lines? 


================
Comment at: compiler-rt/lib/fuzzer/scripts/unbalanced_allocs.py:14
+# Usage:
+#   my_fuzzer -trace_malloc=2 -runs=10 | unbalanced_allocs.py -skip=5
+#
----------------
don't you need 2>&1 ? 


https://reviews.llvm.org/D39466





More information about the llvm-commits mailing list