diff options
| author | Endre Fülöp <endre.fulop@sigmatechnology.se> | 2023-10-24 13:59:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-24 13:59:54 +0200 |
| commit | f7a46d700f6458a382304339c5b3589bf30ae45d (patch) | |
| tree | 1bb9f5d77b74684442ddac1550e8edf20e8ed5f5 /libcxx/include/algorithm | |
| parent | 24f068b0f77e5de1980b71f036f6b83c4d506904 (diff) | |
[analyzer][clangsa] Add new option to alpha.security.cert.InvalidPtrChecker (#67663)
Introduce 'InvalidatingGetEnv' checker option for 'getenv' calls.
- POSIX suggests consecutive 'getenv' calls may invalidate
pointer pointers. This is often too strict in real-world scenarios.
- New 'InvalidatingGetEnv' checker option provides a more
pragmatic default that doesn't treat consecutive 'getenv'
calls as invalidating.
- Now also handles main function specifications with an
environment pointer as the third parameter.
Original Phabricator review:
https://reviews.llvm.org/D154603
Diffstat (limited to 'libcxx/include/algorithm')
0 files changed, 0 insertions, 0 deletions
