[clang] [analyzer][clangsa] Add new option to alpha.security.cert.InvalidPtrChecker (PR #67663)
Endre Fülöp via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 2 05:18:34 PDT 2023
================
@@ -2399,13 +2399,34 @@ pointer. These functions include: getenv, localeconv, asctime, setlocale, strerr
char *p, *pp;
p = getenv("VAR");
- pp = getenv("VAR2");
- // subsequent call to 'getenv' invalidated previous one
+ setenv("SOMEVAR", "VALUE", /*overwrite*/1);
----------------
gamesh411 wrote:
fixed in 5e2d77aa0c14ee8695bcde55b68daa22ccb84a1b
https://github.com/llvm/llvm-project/pull/67663
More information about the cfe-commits
mailing list