]> git.baikalelectronics.ru Git - kernel.git/commit
scripts/clang-tools: Remove DeprecatedOrUnsafeBufferHandling check
authorGuru Das Srinagesh <quic_gurus@quicinc.com>
Thu, 4 Aug 2022 17:46:14 +0000 (10:46 -0700)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 20 Aug 2022 17:47:49 +0000 (02:47 +0900)
commitd59156db3ec684d171455b5f67a285b5bce3121e
tree5efedfdbeb3761c2a5c30d8788dc6ba6246d45f9
parent8f14cd4b505da4b58ff83c8fac59d0e654772d52
scripts/clang-tools: Remove DeprecatedOrUnsafeBufferHandling check

This `clang-analyzer` check flags the use of memset(), suggesting a more
secure version of the API, such as memset_s(), which does not exist in
the kernel:

  warning: Call to function 'memset' is insecure as it does not provide
  security checks introduced in the C11 standard. Replace with analogous
  functions that support length arguments or provides boundary checks such
  as 'memset_s' in case of C11
  [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]

Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/clang-tools/run-clang-tools.py