-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is preferred as crt0stack::Reader::from_environ() relies on the global environ pointer and: 1. The environ pointer is not guaranteed to point to memory before auxv by any standard I am aware of. It just happens to do so in some C library implementations if the environment has not been modified. 2. The environ pointer is definitely not going to point to memory before auxv after calling any environment modifying function such as setenv(3). Calling getauxval(3) is the only standards compliant way of accessing values in the auxiliary vector. Co-authored-by: Patrick Oppenlander <[email protected]> Signed-off-by: Richard Zak <[email protected]>
- Loading branch information
Showing
2 changed files
with
9 additions
and
12 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