Details
Details
- Reviewers
emaste sef - Group Reviewers
manpages - Commits
- rS354928: MFC r354694, r354699
rS354694: elf_aux_info: Add support for AT_EXECPATH.
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
| lib/libc/gen/auxv.c | ||
|---|---|---|
| 161 ↗ | (On Diff #64286) | looks like other cases (incorrectly?) return ENOENT for a too-small buffer, but this seems fine |
| sys/sys/param.h | ||
|---|---|---|
| 63 ↗ | (On Diff #64286) | I asked for a bump so I can put a conditional in llvm, https://reviews.llvm.org/D70198 |
| sys/sys/param.h | ||
|---|---|---|
| 63 ↗ | (On Diff #64286) | Ok, that makes sense. |
Comment Actions
`
| lib/libc/gen/auxv.c | ||
|---|---|---|
| 158 ↗ | (On Diff #64286) | The kernel returns EFAULT on NULL pointers because it potentially takes a fault in copyout. The AT_CANARY code above crashes which seems gratuitous. |
| 161 ↗ | (On Diff #64286) | I followed the documentation here. [EINVAL] The provided buffer was not the right size for the
requested item.Above, I considered buf=NULL to be a degenerate case of not-the-right-size. |