Skip to content

fix: rcl: rmw_serialize leaves interior CDR alignment padding uninitialized (zeroing serialization allocator) - #178

Open
webbrain-one wants to merge 1 commit into
youtalk:mainfrom
webbrain-one:webbrain/issue-162
Open

fix: rcl: rmw_serialize leaves interior CDR alignment padding uninitialized (zeroing serialization allocator)#178
webbrain-one wants to merge 1 commit into
youtalk:mainfrom
webbrain-one:webbrain/issue-162

Conversation

@webbrain-one

Copy link
Copy Markdown

Closes #162

Patch generated by qwen3.6-35b-a3b via local API.

Replace the default non-zeroing allocator with a zeroing allocator when allocating the `rmw_serialized_message_t` buffer. CycloneDDS's introspection serializer skips interior CDR alignment padding without writing to it, causing uninitialized heap bytes to leak into the serialized output. This change ensures deterministic serialization across platforms and resolves byte-parity test failures on Linux.

Updates generator template and regenerates `Sources/CRclBridge/Generated/*`.
Fixes youtalk#162.

Patch generated by qwen3.6-35b-a3b via local API.
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.

rcl: rmw_serialize leaves interior CDR alignment padding uninitialized (zeroing serialization allocator)

1 participant