Xavier Bouchoux 23e212a9d0 std: check for overflow in dumpStackTraceFromBase
same change as [68e26a2ceea85a1] "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.

Same behaviour on i386-windows-msvc.

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.
2022-10-18 13:03:22 +02:00
..
2022-10-13 13:21:19 +02:00
2022-10-12 04:04:43 -04:00
2022-09-12 18:13:24 -07:00
2022-10-06 21:22:20 +03:00
2022-10-17 18:01:05 -04:00
2022-08-17 20:08:13 +02:00
2022-08-31 19:30:51 +02:00
2022-08-23 21:11:02 -07:00
2022-01-07 00:06:06 -05:00
2022-09-11 23:18:43 -04:00
2022-10-16 11:35:27 -04:00
2022-09-07 15:22:30 +03:00
2022-09-12 18:13:24 -07:00
2022-04-15 17:01:01 -05:00
2022-01-07 00:06:06 -05:00
2022-09-13 20:26:04 -04:00