Skip to content

[core] Fix UB in frombuf/tobuf#22176

Open
silverweed wants to merge 1 commit intoroot-project:masterfrom
silverweed:frombuf_union
Open

[core] Fix UB in frombuf/tobuf#22176
silverweed wants to merge 1 commit intoroot-project:masterfrom
silverweed:frombuf_union

Conversation

@silverweed
Copy link
Copy Markdown
Contributor

@silverweed silverweed commented May 7, 2026

Small cleanup: using a union to get around strict type aliasing is not allowed. memcpy must be used instead.
Similarly, replace pointer casts+read with memcpy.

Using a union to get around strict type aliasing is not allowed.
memcpy must be used instead.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

Test Results

    22 files      22 suites   3d 13h 20m 27s ⏱️
 3 850 tests  3 799 ✅ 0 💤 51 ❌
76 936 runs  76 885 ✅ 0 💤 51 ❌

For more details on these failures, see this check.

Results for commit 99bff2a.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant