v8/test/unittests
Clemens Backes efd5442b62 [wasm] Exit early on section ordering problems
If we detect out-of-order sections, we should not enter the individual
decoding functions, because they might make assumptions that are not
true in the error case.
In this case, a DCHECK was firing if we call {DecodeFunctionSection}
twice.

R=ahaas@chromium.org

Bug: chromium:1342274
Change-Id: I3d9d8c8c604aeeb92b9766f07d4b5464f4c8d72c
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3755112
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Reviewed-by: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/main@{#81662}
2022-07-12 09:15:17 +00:00
..
api [test] Move cctest/test-access-check to unittests/ 2022-06-27 11:31:37 +00:00
asmjs [Respect] Prefer inclusive terms 2020-06-22 18:11:23 +00:00
assembler [test][loong64] Fix error when moving test-disasm-loong64 2022-06-02 13:22:43 +00:00
base [test] Move cctest/test-atomicops to unittests/ 2022-06-27 12:03:15 +00:00
codegen [test] Move cctest/test-pointer-auth-arm64 to unittests 2022-06-27 11:28:30 +00:00
compiler [gcc] More gcc build fixes 2022-06-29 12:27:47 +00:00
compiler-dispatcher [task] Expose CreateJob in v8::Platform 2022-06-15 00:13:31 +00:00
date [test] Move cctest/test-date to unittests 2022-04-26 08:14:32 +00:00
debug [inspector] Speed up DebugPropertyIterator. 2021-09-13 12:52:11 +00:00
deoptimizer [test] Move cctest/test-deoptimization to unittests/ 2022-06-15 12:37:25 +00:00
diagnostics [gdbjit] Fix overlapping AddressRegion check 2021-08-19 17:29:57 +00:00
execution [test] Move cctest/test-thread-termination to unittests/ 2022-06-10 12:38:01 +00:00
flags [test] Fix FlagsJitlessImplications test in 2022-06-10 13:52:11 +00:00
heap [cppgc] Use global OOM handler for GCInfoTable 2022-07-05 17:11:15 +00:00
interpreter [debug] Report optimized out and certain TDZ values as unavailable. 2022-07-04 09:25:44 +00:00
js-atomics [heap] Add Parking* variants of blocking primitives 2022-06-17 17:42:40 +00:00
libplatform [perfetto] Skip metadata in JsonIntegrationTest 2022-06-28 15:08:28 +00:00
libsampler [test] move cctest/libsampler to unittests/libsampler 2022-05-17 09:51:27 +00:00
logging [logging] Use short "JS:" prefix for function log events 2022-06-14 16:11:21 +00:00
numbers [test] Move cctest/test-diy-fp to unittests/numbers/ 2022-05-31 07:34:19 +00:00
objects [test] Move cctest/test-intl to unittests/ 2022-07-05 14:51:00 +00:00
parser [gcc] More gcc build fixes 2022-06-29 12:27:47 +00:00
profiler [test] Move cctest/test-circular-queue to unittests 2022-04-25 14:49:26 +00:00
regexp Reland "[test] Move cctest/test-regexp to unittests" 2022-04-29 16:23:32 +00:00
regress [heap] Remove Factory::NewUninitializedFixedArray 2021-04-26 13:52:38 +00:00
runtime Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
sandbox Delete PartiallyReservedSandboxPageAllocation test 2022-07-07 10:43:52 +00:00
strings [base] Move utils/vector.h to base/vector.h 2021-06-18 13:33:13 +00:00
tasks [test] Add a unittest platform setup mixin 2022-04-06 13:07:43 +00:00
torque Reland "Reland "[Torque] Generalize Torque literals to larger size"" 2022-02-04 09:40:24 +00:00
tracing [test] Move cctest/test-traced-value to unittests/tracing/ 2022-05-30 06:03:18 +00:00
utils [test] Move cctest/test-identity-map to unittests/ 2022-07-05 14:41:01 +00:00
wasm [wasm] Exit early on section ordering problems 2022-07-12 09:15:17 +00:00
zone [test] Add a unittest platform setup mixin 2022-04-06 13:07:43 +00:00
avoid-windows-h-includes.cc Test that heap-inl.h doesn't include windows.h 2021-10-14 21:18:51 +00:00
BUILD.gn [build] Disable gcc warnings for unittests 2022-07-06 09:32:55 +00:00
DEPS Reland "Reland "[test] Move tracing cctest to unittests"" 2022-05-31 16:16:57 +00:00
gay-fixed.cc [test] Move cctest/{test-bignum-dtoa, test-dtoa 2022-05-17 01:38:57 +00:00
gay-fixed.h [test] Move cctest/{test-bignum-dtoa, test-dtoa 2022-05-17 01:38:57 +00:00
gay-precision.cc [test] Move cctest/{test-bignum-dtoa, test-dtoa 2022-05-17 01:38:57 +00:00
gay-precision.h [test] Move cctest/{test-bignum-dtoa, test-dtoa 2022-05-17 01:38:57 +00:00
gay-shortest.cc [test] Move cctest/{test-bignum-dtoa, test-dtoa 2022-05-17 01:38:57 +00:00
gay-shortest.h [test] Move cctest/{test-bignum-dtoa, test-dtoa 2022-05-17 01:38:57 +00:00
run-all-unittests.cc [test] Add perfetto initialisation to unittest runner 2022-06-01 12:32:17 +00:00
test-helpers.cc [compiler-dispatcher] Move Job pointer to SFI 2021-12-08 16:03:35 +00:00
test-helpers.h [compiler] Introduce ReusableUnoptimizedCompileState 2021-12-08 11:14:27 +00:00
test-utils.cc [flags] Protect individual flag updates 2022-06-03 10:24:40 +00:00
test-utils.h [flags] Disable flags freezing in tests, fuzzers, and others 2022-06-15 11:52:46 +00:00
testcfg.py [test] Fix get resources for interpreter expectation files 2022-06-11 02:02:28 +00:00
unittests.status Delete PartiallyReservedSandboxPageAllocation test 2022-07-07 10:43:52 +00:00