[PATCH] D65160: [libFuzzer] Fix __sanitizer_print_memory_profile return type in ExtFunctions.def

Max Moroz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 23 11:28:09 PDT 2019


Dor1s created this revision.
Dor1s added a reviewer: kcc.
Herald added subscribers: llvm-commits, Sanitizers, delcypher.
Herald added projects: LLVM, Sanitizers.
Dor1s accepted this revision.
Dor1s added a comment.
This revision is now accepted and ready to land.

TBR as it seems to be a trivial fix. Tests do not break locally. Will revert if anything goes wrong :)


Looks like a typo, as that function actually returns void and is used
as such in libFuzzer code as well.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D65160

Files:
  lib/fuzzer/FuzzerExtFunctions.def


Index: lib/fuzzer/FuzzerExtFunctions.def
===================================================================
--- lib/fuzzer/FuzzerExtFunctions.def
+++ lib/fuzzer/FuzzerExtFunctions.def
@@ -34,7 +34,7 @@
           void (*free_hook)(const volatile void *)),
          false);
 EXT_FUNC(__sanitizer_purge_allocator, void, (), false);
-EXT_FUNC(__sanitizer_print_memory_profile, int, (size_t, size_t), false);
+EXT_FUNC(__sanitizer_print_memory_profile, void, (size_t, size_t), false);
 EXT_FUNC(__sanitizer_print_stack_trace, void, (), true);
 EXT_FUNC(__sanitizer_symbolize_pc, void,
          (void *, const char *fmt, char *out_buf, size_t out_buf_size), false);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65160.211338.patch
Type: text/x-patch
Size: 664 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190723/732c667c/attachment.bin>


More information about the llvm-commits mailing list