-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
c18n: Clear correct number of return values during tail-call
In the following example, bar makes a tail-call to foo, which returns a value that is observable to the caller of bar, even though bar returns nothing. void *foo(); void bar() { foo(); } When bar is called, previous versions of the trampoline clears return value registers as if foo is being called directly, leaking a capability. Instead, clear the maximum number of return value registers as required for both foo and bar.
- Loading branch information
Showing
3 changed files
with
95 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters