Michael Smith has uploaded this change for review. ( 
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)
---
M .clang-tidy
M be/src/exprs/expr-test.cc
2 files changed, 9 insertions(+), 7 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/47/25347/1
--
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: newchange
Gerrit-Change-Id: I1d52a7ddc03b3b262e0d1b0e05a08c22edaa8163
Gerrit-Change-Number: 25347
Gerrit-PatchSet: 1
Gerrit-Owner: Michael Smith <[email protected]>

Reply via email to