Skip to content

Conversation

@copybara-service
Copy link

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.

`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
@copybara-service copybara-service bot merged commit 43892bc into master Sep 2, 2025
@copybara-service copybara-service bot deleted the test_801935442 branch September 2, 2025 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants