1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 05:21:16 +02:00

Merge pull request #11150 from hercules-ci/issue-11141-broken-sp-corrector

Fix issue #11141 broken stack pointer corrector
This commit is contained in:
Eelco Dolstra 2024-07-22 19:59:46 +02:00 committed by GitHub
commit babfd0cd99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 103 additions and 1 deletions

View file

@ -121,7 +121,7 @@ void fixupBoehmStackPointer(void ** sp_ptr, void * _pthread_id)
// NOTE: We assume the stack grows down, as it does on all architectures we support.
// Architectures that grow the stack up are rare.
if (sp >= osStackBase || sp < osStackLow) { // lo is outside the os stack
sp = osStackBase;
sp = osStackLow;
}
}