From feaf607d3ffa7e3aee5c3471fd5112ce9ffc48c9 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Tue, 3 Jan 2023 21:57:47 -0800 Subject: Disable tidy DeprecatedOrUnsafeBufferHandling check This check is disabled in global default, see build/soong/cc/config/tidy.go. Unless all such warnings can be fixed in the upstream source, we should not enable this check locally. Test: presubmit; make tidy-external-bcc_subset Change-Id: Icd71bbf3ee1acc726558834450d8c60947dbd55b --- Android.bp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Android.bp b/Android.bp index 620d6c6e..90c084a4 100644 --- a/Android.bp +++ b/Android.bp @@ -68,6 +68,8 @@ cc_defaults { "android-*", "cert-*", "clang-analyzer-security*", + // Many calls to snprintf/sscanf/memset/memcpy in libbpf.c have the following warning. + "-clang-analyzer-security.insucureAPI.DeprecatedOrUnsafeBufferHandling", // Disabling due to many unavoidable warnings from POSIX API usage. "-google-runtime-int", ], -- cgit v1.2.3 From 87ee09f72323e9b64dba1eea5bf5dd8b8c0ea027 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Wed, 4 Jan 2023 15:32:43 -0800 Subject: Fix typo, insecureAPI.DeprecatedOrUnsafeBufferHandling Test: presubmit; make tidy-external-bcc_subset Change-Id: Iea0d6f1bbfb60e3bc86580af70f07e33ad415f0e --- Android.bp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Android.bp b/Android.bp index 90c084a4..9f9b2efc 100644 --- a/Android.bp +++ b/Android.bp @@ -69,7 +69,7 @@ cc_defaults { "cert-*", "clang-analyzer-security*", // Many calls to snprintf/sscanf/memset/memcpy in libbpf.c have the following warning. - "-clang-analyzer-security.insucureAPI.DeprecatedOrUnsafeBufferHandling", + "-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling", // Disabling due to many unavoidable warnings from POSIX API usage. "-google-runtime-int", ], -- cgit v1.2.3