[PATCH] D62698: [GWP-ASan] Configuration options [3].

Matt Morehouse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 4 09:22:43 PDT 2019


morehouse accepted this revision.
morehouse added inline comments.
This revision is now accepted and ready to land.


================
Comment at: compiler-rt/lib/gwp_asan/optional/options_parser.cpp:80
+
+  if (o->SampleRate < 1 || o->SampleRate > INT32_MAX) {
+    __sanitizer::Printf("GWP-ASan ERROR: 0 < SampleRate < 2^31 when "
----------------
Isn't it impossible for `SampleRate` to be larger than `INT_MAX`?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D62698





More information about the llvm-commits mailing list