Hello Yida Wu, Jiyoung Yoo, Jason Fehr, Balazs Hevele, Csaba Ringhofer, Joe 
McDonnell, Impala Public Jenkins,

I'd like you to reexamine a change. Please visit

    https://gerrit.cloudera.org/25348

to look at the new patch set (#3).

Change subject: IMPALA-15745: Fix 
clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling
......................................................................

IMPALA-15745: Fix 
clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling

squeasel.c is intended to be built as C99, but its COMPILE_FLAGS
property was set twice and the second call (-DUSE_IPV6) replaced
-std=c99. As a result squeasel was compiled with the compiler's
default C standard (gnu17 in Clang, gnu23 in GCC 15). Set both flags
in a single property so squeasel is built as C99 again.

DeprecatedOrUnsafeBufferHandling only applies to C11 and later, as it
recommends C11 Annex K functions (memcpy_s, snprintf_s, etc.) that
glibc does not provide, so it no longer reports squeasel's bounded
memcpy/snprintf/etc. calls.

Also add explicit field widths to sscanf() %s and %[ conversions
that previously relied on input length assumptions in authorize(),
sq_modify_passwords_file(), do_ssi_include() and do_ssi_exec().

Change-Id: I73a4bce56431332c4d629855e910a76c3a120e6e
Assisted-by: Claude Opus (GitHub Copilot)
---
M .clang-tidy
M be/src/thirdparty/squeasel/squeasel.c
M be/src/util/CMakeLists.txt
3 files changed, 10 insertions(+), 13 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/48/25348/3
--
To view, visit https://gerrit.cloudera.org/25348
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I73a4bce56431332c4d629855e910a76c3a120e6e
Gerrit-Change-Number: 25348
Gerrit-PatchSet: 3
Gerrit-Owner: Michael Smith <[email protected]>
Gerrit-Reviewer: Balazs Hevele <[email protected]>
Gerrit-Reviewer: Csaba Ringhofer <[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