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
..
2023-12-21 08:47:58 +00:00
2023-10-11 18:41:57 +00:00
2023-04-12 01:11:05 +00:00
2021-12-24 06:44:34 +00:00
2023-07-03 12:29:15 +00:00
2023-12-18 19:40:36 +00:00
2023-04-12 01:11:05 +00:00
2022-03-10 23:48:05 +00:00
2023-04-12 01:11:05 +00:00
2024-01-16 18:41:23 +00:00
2023-04-12 01:11:05 +00:00
2022-05-31 15:36:33 +00:00
2023-04-12 20:32:29 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2023-10-31 17:11:51 +00:00
2023-10-31 17:11:51 +00:00
2023-12-21 22:35:59 +00:00
2023-12-21 22:35:59 +00:00
2024-01-11 23:54:59 +00:00
2024-01-11 23:54:59 +00:00
2023-07-28 10:01:53 +00:00
2023-07-28 10:01:53 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2024-01-11 23:54:59 +00:00
2023-04-12 01:11:05 +00:00
2024-01-18 01:09:49 +00:00
2021-09-02 14:14:35 +00:00
2023-07-14 01:31:38 +00:00
2023-04-12 20:32:29 +00:00
2023-05-02 07:32:30 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 20:32:29 +00:00
2023-05-02 07:32:30 +00:00
2023-05-02 07:32:30 +00:00
2023-01-25 14:08:27 +00:00
2023-11-13 14:25:28 +00:00
2023-06-28 13:06:51 +00:00
2023-04-12 01:11:05 +00:00
2023-05-02 07:32:30 +00:00
2023-12-05 17:25:39 +00:00
2023-09-05 21:47:59 +00:00
2023-01-06 07:48:22 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2024-01-11 22:24:44 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2023-11-13 14:25:28 +00:00
2023-07-04 13:10:42 +00:00
2023-04-12 01:11:05 +00:00
2023-11-13 14:25:28 +00:00
2024-01-11 23:54:59 +00:00
2023-09-05 21:47:59 +00:00
2023-04-12 20:32:29 +00:00
2023-04-12 20:32:29 +00:00
2023-11-30 23:44:50 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2023-04-18 20:56:00 +00:00
2022-09-01 20:36:12 +00:00
2023-06-07 09:49:35 +00:00
2022-09-13 21:16:28 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2023-07-28 10:01:53 +00:00
2021-09-02 14:14:35 +00:00
2023-04-12 01:11:05 +00:00
2023-12-21 22:35:59 +00:00
2023-01-16 15:12:38 +00:00
2023-04-12 01:11:05 +00:00
2023-04-20 18:16:09 +00:00
2023-01-16 15:12:38 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 20:32:29 +00:00
2023-04-12 20:32:29 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2023-11-17 19:02:33 +00:00
2023-09-05 22:15:58 +00:00
2023-11-17 19:02:33 +00:00
2021-10-19 21:25:43 +00:00
2021-10-19 21:25:43 +00:00
2023-11-17 19:02:33 +00:00
2023-12-08 20:20:10 +00:00
2023-04-12 01:11:05 +00:00
2023-09-05 22:15:58 +00:00
2024-01-11 19:12:52 +00:00
2023-06-14 01:38:34 +00:00
2024-01-11 19:12:52 +00:00
2023-06-19 00:25:12 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 20:32:29 +00:00
2023-09-05 22:15:58 +00:00
2023-04-12 20:32:29 +00:00
2023-07-11 15:13:58 +00:00
2023-04-12 01:11:05 +00:00
2023-10-31 17:11:51 +00:00
2023-09-05 21:47:59 +00:00
2023-08-11 16:28:46 +00:00
2023-04-12 20:32:29 +00:00
2022-03-31 06:40:51 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 20:32:29 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2023-08-11 16:28:46 +00:00
2023-12-11 17:49:58 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 20:32:29 +00:00
2022-08-17 16:18:35 +00:00
2023-12-18 21:39:09 +00:00
2022-03-24 10:08:01 +00:00
2023-04-12 01:11:05 +00:00
2023-06-08 13:17:28 +00:00
2023-06-08 13:17:28 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2023-06-08 13:17:28 +00:00
2023-08-18 17:22:18 +00:00
2023-06-09 08:29:30 +00:00
2023-06-08 13:17:28 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2023-07-04 13:10:42 +00:00
2023-04-12 20:32:29 +00:00
2023-04-12 01:11:05 +00:00
2022-05-31 15:36:33 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2022-05-31 15:36:33 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 20:32:29 +00:00
2023-04-12 20:32:29 +00:00
2023-04-12 20:32:29 +00:00
2022-03-09 18:02:34 +00:00
2023-04-12 01:11:05 +00:00
2022-03-21 16:47:47 +00:00
2023-04-12 01:11:05 +00:00
2022-03-21 16:47:47 +00:00
2023-04-12 01:11:05 +00:00
2022-03-21 16:47:47 +00:00
2023-04-12 01:11:05 +00:00
2022-03-21 16:47:47 +00:00
2023-04-12 01:11:05 +00:00
2022-03-21 16:47:47 +00:00
2023-04-12 01:11:05 +00:00
2022-03-21 16:47:47 +00:00
2023-04-12 20:32:29 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 20:32:29 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 01:11:05 +00:00
2021-08-12 21:30:10 +00:00
2024-01-11 22:24:44 +00:00
2021-08-12 21:30:10 +00:00
2023-04-12 01:11:05 +00:00
2023-04-12 20:32:29 +00:00
2023-04-12 20:32:29 +00:00