From a4771dbd8a34980a6b41c595c1c07d1d0a1e1e2c Mon Sep 17 00:00:00 2001 From: Derek Mauro Date: Tue, 1 Aug 2023 10:33:06 -0700 Subject: InlinedVector: Disable CFI checking on the const GetInlinedData() path as well. Some empty cases can trigger this. See also: https://clang.llvm.org/docs/ControlFlowIntegrity.html#bad-cast-checking. PiperOrigin-RevId: 552846765 Change-Id: I6adb3c0c73efec841ffe8fdac4342f641c68ddbe --- absl/container/internal/inlined_vector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'absl/container/internal/inlined_vector.h') diff --git a/absl/container/internal/inlined_vector.h b/absl/container/internal/inlined_vector.h index cdfd868e..b2a602db 100644 --- a/absl/container/internal/inlined_vector.h +++ b/absl/container/internal/inlined_vector.h @@ -400,7 +400,7 @@ class Storage { return reinterpret_cast>(data_.inlined.inlined_data); } - ConstPointer GetInlinedData() const { + ABSL_ATTRIBUTE_NO_SANITIZE_CFI ConstPointer GetInlinedData() const { return reinterpret_cast>(data_.inlined.inlined_data); } -- cgit v1.2.3