Jakub Konka 68e26a2cee std: check for overflow in writeCurrentStackTrace
On arm64 macOS, the address of the last frame is 0x0 rather than
a positive value like 0x1 on x86_64 macOS, therefore, we overflow
an integer trying to subtract 1 when printing the stack trace. This
patch fixes it by first checking for this condition before trying
to subtract 1.

Note that we do not need to signal the `SignalIterator` about this
as it will correctly detect this condition on the subsequent iteration
and return `null`, thus terminating the loop.
2021-08-02 13:40:53 -04:00
..
2021-06-30 21:49:00 -05:00
2021-07-28 21:39:36 +03:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-07-04 16:15:23 +02:00
2021-06-17 16:37:38 -04:00
2020-12-31 15:45:24 -08:00
2021-06-30 21:49:38 -05:00
2020-12-31 15:45:24 -08:00
2021-06-21 17:03:03 -07:00
2021-06-30 21:49:00 -05:00
2021-05-08 15:15:30 +03:00
2020-12-31 15:45:24 -08:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2020-12-31 15:45:24 -08:00
2021-05-08 15:15:30 +03:00
2021-07-28 21:39:36 +03:00
2020-12-31 15:45:24 -08:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-07-19 12:55:05 +03:00
2021-06-10 20:13:43 -07:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-07-20 10:22:06 +02:00
2021-06-21 17:03:03 -07:00
2021-07-08 14:30:45 -04:00
2021-06-21 17:03:03 -07:00
2021-07-11 01:58:26 -04:00
2021-05-08 15:15:30 +03:00
2021-07-15 20:37:16 +03:00