Skip to content

Remove null-termination padding from DescriptorNames. - #30438

Draft
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_988856191
Draft

copybara-service[bot] wants to merge 1 commit into
mainfrom
test_988856191

Conversation

@copybara-service

Copy link
Copy Markdown

Remove null-termination padding from DescriptorNames.

Previously, DescriptorNames appended a trailing \0 byte after each stored name (name(), full_name(), lowercase_name(), camelcase_name(), and json_name()) as a temporary compatibility measure after migrating descriptor name accessors from const std::string& to absl::string_view. Remove the extra \0 bytes and adjust offsets and allocation size limits accordingly.

Previously, `DescriptorNames` appended a trailing `\0` byte after each stored name (`name()`, `full_name()`, `lowercase_name()`, `camelcase_name()`, and `json_name()`) as a temporary compatibility measure after migrating descriptor name accessors from `const std::string&` to `absl::string_view`. Remove the extra `\0` bytes and adjust offsets and allocation size limits accordingly.

PiperOrigin-RevId: 988856191

This branch has not been deployed

No deployments
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.

1 participant