Michael Smith has submitted this change and it was merged. ( 
https://gerrit.cloudera.org/25348 )

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)
Reviewed-on: https://gerrit.cloudera.org/25348
Reviewed-by: Michael Smith <[email protected]>
Tested-by: Michael Smith <[email protected]>
---
M .clang-tidy
M be/src/thirdparty/squeasel/squeasel.c
M be/src/util/CMakeLists.txt
3 files changed, 10 insertions(+), 13 deletions(-)

Approvals:
  Michael Smith: Looks good to me, approved; Verified

--
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: merged
Gerrit-Change-Id: I73a4bce56431332c4d629855e910a76c3a120e6e
Gerrit-Change-Number: 25348
Gerrit-PatchSet: 4
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