Skip to content

Commit f45dbee

Browse files
CEL Dev Teamcopybara-github
authored andcommitted
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: 801935442
1 parent 4c1cc25 commit f45dbee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/values/custom_list_value.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ class CustomListValueInterface {
241241

242242
struct Content {
243243
const CustomListValueInterface* absl_nonnull interface;
244-
google::protobuf::Arena* absl_nonnull arena;
244+
const google::protobuf::Arena* absl_nullable arena;
245245
};
246246
};
247247

0 commit comments

Comments
 (0)