Page MenuHomeFreeBSD

imgact_elf: compute auxv buffer size instead of using magic value
ClosedPublic

Authored by trasz on Jun 19 2021, 11:42 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 9, 6:54 PM
Unknown Object (File)
Thu, Nov 6, 10:04 AM
Unknown Object (File)
Thu, Nov 6, 12:41 AM
Unknown Object (File)
Mon, Nov 3, 11:04 PM
Unknown Object (File)
Wed, Oct 29, 12:37 AM
Unknown Object (File)
Sun, Oct 26, 11:01 PM
Unknown Object (File)
Sep 14 2025, 9:15 PM
Unknown Object (File)
Aug 26 2025, 3:19 AM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Jun 19 2021, 1:49 PM

Note that in theory, application might replace its auxv vector with whatever values it wants. So proc_getauxv() does not limit the count to AT_COUNT, but defined somewhat arbitrary PROC_AUXV_MAX limit. You might move this define to some global place and use it instead of AT_COUNT, as a follow-up.

Anyway, this change is already an improvement, since it avoids truncating auxv for normal core dumps.