From 43892bc3f483a800d92b280da2067099ecbec108 Mon Sep 17 00:00:00 2001 From: CEL Dev Team Date: Tue, 2 Sep 2025 07:59:56 -0700 Subject: [PATCH] Mark `arena` as nullable `CustomListValue::CustomListValue()` set's it into nullptr and it triggers `-fsanitize=nullability`. There are not deference of this pointer, it used only in comparison. Marking it `nonnull` does not help to protect dereferences. Also mark `arena` as const, to make sure it's not used for allocation, those methods are non-const. PiperOrigin-RevId: 802145149 --- common/values/custom_list_value.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/values/custom_list_value.h b/common/values/custom_list_value.h index f16df2da6..e66eece43 100644 --- a/common/values/custom_list_value.h +++ b/common/values/custom_list_value.h @@ -241,7 +241,7 @@ class CustomListValueInterface { struct Content { const CustomListValueInterface* absl_nonnull interface; - google::protobuf::Arena* absl_nonnull arena; + const google::protobuf::Arena* absl_nullable arena; }; };