Impala Public Jenkins has submitted this change and it was merged. ( 
https://gerrit.cloudera.org/25347 )

Change subject: IMPALA-15745: Fix clang-analyzer-security.cert.env.InvalidPtr
......................................................................

IMPALA-15745: Fix clang-analyzer-security.cert.env.InvalidPtr

ScopedTimeZoneOverride stored the pointer returned by getenv("TZ")
and used it after calling setenv("TZ", ...), which may invalidate
that pointer. Copy the original value into a std::optional<string>
before overriding TZ.

Change-Id: I1d52a7ddc03b3b262e0d1b0e05a08c22edaa8163
Assisted-by: Claude Opus (GitHub Copilot)
Reviewed-on: https://gerrit.cloudera.org/25347
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
---
M .clang-tidy
M be/src/exprs/expr-test.cc
2 files changed, 9 insertions(+), 7 deletions(-)

Approvals:
  Impala Public Jenkins: Looks good to me, approved; Verified

--
To view, visit https://gerrit.cloudera.org/25347
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I1d52a7ddc03b3b262e0d1b0e05a08c22edaa8163
Gerrit-Change-Number: 25347
Gerrit-PatchSet: 3
Gerrit-Owner: Michael Smith <[email protected]>
Gerrit-Reviewer: Balazs Hevele <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Jason Fehr <[email protected]>
Gerrit-Reviewer: Jiyoung Yoo <[email protected]>
Gerrit-Reviewer: Joe McDonnell <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>
Gerrit-Reviewer: Yida Wu <[email protected]>

Reply via email to