Michael Smith has uploaded this change for review. ( 
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). 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/1
--
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: newchange
Gerrit-Change-Id: I73a4bce56431332c4d629855e910a76c3a120e6e
Gerrit-Change-Number: 25348
Gerrit-PatchSet: 1
Gerrit-Owner: Michael Smith <[email protected]>

Reply via email to