Page MenuHomeFreeBSD

libc: Use secure_getenv(3) where appropriate
ClosedPublic

Authored by markj on Mar 26 2023, 4:51 PM.
Tags
None
Referenced Files
F83060421: D39278.id119483.diff
Sun, May 5, 6:06 PM
Unknown Object (File)
Fri, Apr 26, 8:58 PM
Unknown Object (File)
Mar 6 2024, 3:17 AM
Unknown Object (File)
Mar 6 2024, 3:17 AM
Unknown Object (File)
Mar 6 2024, 3:17 AM
Unknown Object (File)
Mar 5 2024, 5:08 AM
Unknown Object (File)
Jan 3 2024, 1:57 AM
Unknown Object (File)
Jan 3 2024, 1:57 AM

Details

Summary

No functional change intended.

Diff Detail

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

Event Timeline

markj requested review of this revision.Mar 26 2023, 4:51 PM
markj created this revision.
This revision is now accepted and ready to land.Mar 26 2023, 5:46 PM

Did you use coccinelle (sp?) to find all these?

In D39278#894202, @imp wrote:

Did you use coccinelle (sp?) to find all these?

No, just cscope. I think it'd be tricky to write a coccinelle script for this since there's quite a few syntactic variations to look for. Maybe it's easier than I think though, I've only written a couple of scripts with it.

This revision was automatically updated to reflect the committed changes.

Cross-builds on GitHub are failing for macOS, as secure_getenv() does not exist. Should I add it to tools/build/cross-build/include/mac/stdlib.h?

Cross-builds on GitHub are failing for macOS, as secure_getenv() does not exist. Should I add it to tools/build/cross-build/include/mac/stdlib.h?

Oops, thanks for the report. I suspect that'd be sufficient, yes. I started a CI run with that change and will push it if the build completes.

Cross-builds on GitHub are failing for macOS, as secure_getenv() does not exist. Should I add it to tools/build/cross-build/include/mac/stdlib.h?

Oops, thanks for the report. I suspect that'd be sufficient, yes. I started a CI run with that change and will push it if the build completes.

https://reviews.freebsd.org/D39295