v8/test/unittests/base
Jakob Kummerow fc329ce22a [ubsan] Fix various cases of undefined behavior
Mostly signed integer overflows, and a few cases of double
division by zero (which is defined by IEEE-754 to return
Infinity (or NaN for 0/0) but is UB in C++).
In base/ieee754.cc, use constants for NaN and Infinity instead
of computing these values.
In spaces-unittest.cc, ensure that a large enough allocation
is used.

Bug: v8:3770
Change-Id: I50d9a77dc860ef9993b7b269a5f8c117b0f62f9d
Reviewed-on: https://chromium-review.googlesource.com/c/1403454
Commit-Queue: Jakob Kummerow <jkummerow@chromium.org>
Reviewed-by: Adam Klein <adamk@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#58701}
2019-01-10 13:52:04 +00:00
..
platform [base] Introduce MutexGuard as typedef for LockGuard<Mutex> 2018-10-12 15:44:51 +00:00
utils Reland "Introduce gc flag for fuzzing over compaction." 2017-11-07 15:29:30 +00:00
address-region-unittest.cc [ptr-compr] Re-imlpement BoundedPageAllocator::ReleasePages() 2018-09-28 10:41:06 +00:00
atomic-utils-unittest.cc Remove unused AtomicValue::TrySetValue method 2018-11-09 16:33:05 +00:00
bits-unittest.cc Normalize casing of hexadecimal digits 2017-12-02 01:24:40 +00:00
cpu-unittest.cc [x86] Disable AVX unless the operating system explicitly claims to support it. 2015-01-27 09:59:24 +00:00
division-by-constant-unittest.cc Remove v8stdint.h, it doesn't serve a purpose anymore. 2014-10-21 08:25:14 +00:00
flags-unittest.cc Remove v8stdint.h, it doesn't serve a purpose anymore. 2014-10-21 08:25:14 +00:00
functional-unittest.cc [cleanup] Mark test/ methods in subclasses with override. 2018-09-17 07:40:00 +00:00
ieee754-unittest.cc [ubsan] Fix various cases of undefined behavior 2019-01-10 13:52:04 +00:00
iterator-unittest.cc Avoid signed/unsigned warning in VC++ 2017 builds 2017-04-24 19:29:59 +00:00
list-unittest.cc [heap] Remove anchor page from Space. 2018-05-22 17:48:02 +00:00
logging-unittest.cc MIPS: Fix build of unitttests in debug mode 2018-11-20 11:01:44 +00:00
macros-unittest.cc Account for different interpretations of "trivially copyable" 2018-03-02 15:45:14 +00:00
ostreams-unittest.cc Normalize casing of hexadecimal digits 2017-12-02 01:24:40 +00:00
region-allocator-unittest.cc [ptr-compr] Re-imlpement BoundedPageAllocator::ReleasePages() 2018-09-28 10:41:06 +00:00
sys-info-unittest.cc Remove NaCl support. 2016-07-27 07:50:31 +00:00
template-utils-unittest.cc Make v8 build with -Wmicrosoft-cast under clang-cl. 2018-02-28 18:06:57 +00:00
threaded-list-unittest.cc [scopes] Push unresolved variables at the back so we can MoveTail to rescope 2018-11-27 11:55:46 +00:00