quic-akaryaki
535520c663
[llvm-objcopy] --gap-fill and 0-size sections ( #75837 )
...
In the change that added `--gap-fill`, the condition to choose the
sections to write in `BinaryWriter::write()` did not exclude zero-size
sections. However, zero-size sections did not have correct offsets
assigned in `BinaryWriter::finalize()`. The result is either a failed
assertion, or memory corruption due to writing to the buffer beyond its
size.
To fix this, exclude zero-size sections from writing. Also, add a zero-size
section to the test, which would trigger the problem.
2023-12-19 15:30:29 -06:00
..
2020-01-21 17:20:18 -08:00
2020-03-05 09:53:14 -08:00
2020-01-21 17:20:18 -08:00
2020-11-09 13:00:50 +03:00
2020-01-21 17:20:18 -08:00
2020-01-21 17:20:18 -08:00
2020-01-21 17:20:18 -08:00
2020-12-14 12:03:00 +03:00
2020-11-09 13:00:50 +03:00
2019-09-14 01:36:16 +00:00
2019-09-14 01:36:31 +00:00
2021-03-05 08:57:40 +00:00
2022-07-04 21:45:19 -07:00
2019-07-30 13:37:02 +00:00
2019-01-28 15:02:40 +00:00
2023-06-26 10:37:31 +08:00
2023-06-20 15:45:33 -07:00
2020-11-09 13:00:50 +03:00
2020-11-09 13:00:50 +03:00
2020-11-09 13:00:50 +03:00
2020-01-21 17:20:18 -08:00
2020-11-09 13:00:50 +03:00
2022-09-08 00:59:14 -07:00
2022-06-29 10:42:55 -07:00
2022-06-29 10:42:55 -07:00
2019-05-01 05:27:20 +00:00
2022-09-08 00:59:14 -07:00
2022-09-08 00:59:14 -07:00
2022-09-22 10:26:47 -07:00
2022-06-29 10:42:55 -07:00
2023-06-26 10:37:31 +08:00
2022-09-08 00:59:14 -07:00
2021-05-04 17:30:57 -07:00
2019-01-11 18:06:31 +00:00
2019-05-23 00:42:46 +00:00
2020-11-09 13:00:50 +03:00
2021-01-29 07:16:30 -05:00
2020-01-21 17:20:18 -08:00
2023-12-19 15:30:29 -06:00
2021-08-12 17:12:09 +07:00
2020-01-21 17:20:18 -08:00
2019-05-10 12:58:52 +00:00
2023-02-17 17:59:20 +00:00
2022-04-18 14:16:10 -07:00
2019-09-17 08:38:53 +00:00
2023-12-15 16:18:25 -06:00
2021-03-04 11:32:27 +00:00
2020-11-09 13:00:50 +03:00
2019-05-23 00:42:46 +00:00
2020-01-21 17:20:18 -08:00
2020-05-29 20:24:53 +07:00
2020-01-21 17:20:18 -08:00
2020-01-21 17:20:18 -08:00
2020-01-21 17:20:18 -08:00
2023-07-25 09:47:02 -07:00
2018-11-30 05:43:39 +00:00
2020-11-09 13:00:50 +03:00
2020-11-09 13:00:50 +03:00
2020-11-09 13:00:50 +03:00
2022-07-13 10:04:21 -07:00
2023-07-25 09:47:02 -07:00
2020-04-15 13:09:51 +03:00
2023-07-25 09:47:02 -07:00
2023-02-03 13:08:17 +03:00
2022-06-29 10:42:55 -07:00
2020-01-21 17:20:18 -08:00
2023-06-06 14:35:04 +01:00
2022-12-16 11:12:15 +00:00
2023-08-08 20:25:10 -07:00
2022-06-29 14:33:22 -07:00