This repository was archived by the owner on Mar 24, 2022. It is now read-only.
Commit 9389a4c
committed
[lucet-runtime-internals] terminate the stack correctly
This places the pointers to the parent and child contexts _above_ the two zero words used to
terminate the call stack. This is the location where memory arguments are expected, which isn't
completely relevant since `lucet_context_backstop` is written in assembly, but it at least prevents
gdb and other unwinding tools from mistaking the pointers for return addresses.1 parent bc8aaef commit 9389a4c
File tree
2 files changed
+9
-8
lines changed- lucet-runtime/lucet-runtime-internals/src/context
2 files changed
+9
-8
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
| 65 | + | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
351 | 355 | | |
352 | 356 | | |
353 | 357 | | |
354 | 358 | | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
| 359 | + | |
| 360 | + | |
360 | 361 | | |
361 | 362 | | |
362 | 363 | | |
363 | 364 | | |
364 | 365 | | |
365 | 366 | | |
366 | | - | |
| 367 | + | |
367 | 368 | | |
368 | 369 | | |
369 | 370 | | |
| |||
0 commit comments