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
F157369808: D30821.id91167.diff
Wed, May 20, 5:13 PM
Unknown Object (File)
Mon, May 18, 12:18 AM
Unknown Object (File)
Mon, May 18, 12:18 AM
Unknown Object (File)
Sun, May 17, 11:53 PM
Unknown Object (File)
Thu, Apr 30, 4:04 PM
Unknown Object (File)
Apr 17 2026, 6:39 AM
Unknown Object (File)
Apr 17 2026, 6:31 AM
Unknown Object (File)
Apr 12 2026, 4:58 PM
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.