dart-sdk/tests
Alexander Markov 5230995e3a [vm] Fix unwinding records on Windows
This change fixes the following 2 bugs related to unwinding records
on Windows:

1) When cross-compiling from another OS to Windows, unwinding records
   were not added to the end of the code section. Later, when loading
   AOT snapshot, arbitrary bytes at the end of the code section were
   used as the unwinding data, which could result in the errors
   returned from Windows API calls.

2) When code section is mapped, its size was rounded up to the page
   size; when looking for unwinding record, size of the unwinding
   record was subtracted from the rounded size. This is not correct
   as unwinding record is placed right at the end of code section,
   so code section size should be used before rounding.

Also, magic value is added to the unwinding record in order to
verify that it is preserved and correctly found.

TEST=Manually tested repro from b/320642692
TEST=ffi/ffi_induce_a_crash_test

Fixes b/320642692
Fixes https://github.com/dart-lang/sdk/issues/54206

Change-Id: Id0c6413cd1b759da9e9f25f7617eef55f33b04a2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/346940
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2024-01-18 01:09:49 +00:00
..
co19 [co19] Roll co19 to b5126f0bd51ea0819df8d5c362574f951a564940 2024-01-12 11:23:39 +00:00
corelib Update tests to pass in web/production mode. 2024-01-08 17:21:29 +00:00
dartdevc [ddc] Delete typeRep() and legacyTypeRep() 2024-01-12 00:45:47 +00:00
ffi [vm] Fix unwinding records on Windows 2024-01-18 01:09:49 +00:00
language Language test pattern type schemas. 2024-01-17 21:55:14 +00:00
lib Use asyncTest instead of main async in JS interop tests 2024-01-05 00:21:29 +00:00
modular [tests] Add repro for cross module constant 2023-11-13 22:21:40 +00:00
standalone [VM/test] Skips test on Android as executable bit is not set for shell script. 2024-01-17 19:21:19 +00:00
web [dart2js] Fix as-check type registration. 2024-01-09 00:04:50 +00:00
legacy_status_dart2js.csv Spelling tests 2022-12-19 12:56:47 +00:00
OWNERS
README.md

This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/wiki/Testing.