diff options
| author | Ryan Liptak <squeek502@hotmail.com> | 2022-06-17 22:05:41 -0700 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2022-06-27 20:00:39 +0300 |
| commit | a76775b50a65fd0ea0fd17d6ef3c42058df13997 (patch) | |
| tree | 46fea00ce7c12e66d898d02eff0c94b2d5ef0d4d /lib/std/macho.zig | |
| parent | 76f83282776151bd79715c4c00d13d06de633354 (diff) | |
| download | zig-a76775b50a65fd0ea0fd17d6ef3c42058df13997.tar.gz zig-a76775b50a65fd0ea0fd17d6ef3c42058df13997.zip | |
Fix stack traces with non-null `first_address` on Windows
Before this commit, the passed in length would always be given to the RtlCaptureStackBackTrace call. Now we always give the length of the actual buffer we're using (the addr_buf_stack size of 32 or the passed in length if it's larger than 32; this matches what the doc comment says the function was meant to be doing as well).
This was causing empty stack traces for things like the GeneralPurposeAllocator leak checking.
Fixes #6687
Diffstat (limited to 'lib/std/macho.zig')
0 files changed, 0 insertions, 0 deletions
