1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 13:41:15 +02:00

Fix #11141 broken sp corrector

This commit is contained in:
Robert Hensing 2024-07-22 14:48:18 +02:00
parent 0ec5e3a1bc
commit 380becf0db
4 changed files with 101 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;
}
}