[PATCH] D77219: UBSan ␇ runtime
Roman Lebedev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 1 09:01:07 PDT 2020
lebedev.ri added inline comments.
================
Comment at: compiler-rt/lib/ubsan_bel/ubsan_bel_handlers.cpp:40-42
+ static std::random_device r;
+ static std::default_random_engine e(r());
+ static std::uniform_int_distribution<int> d(0, sizeof(quips) / sizeof(quips[0]) - 1);
----------------
I'm not sure we should be introducing randomness into UB handler.
I think what this instead should do, is attach gdb to the process and fix the UB-invoking instructions.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77219/new/
https://reviews.llvm.org/D77219
More information about the cfe-commits
mailing list