Skip to content

Fix htool security v2 comand to avoid strict aliasing violations#274

Merged
ashncook merged 1 commit into
google:mainfrom
willyzha:fix-strict-aliasing
Jun 15, 2026
Merged

Fix htool security v2 comand to avoid strict aliasing violations#274
ashncook merged 1 commit into
google:mainfrom
willyzha:fix-strict-aliasing

Conversation

@willyzha

Copy link
Copy Markdown

This eliminates the need for unsafe type casts, (uint8_t**)&param, which violates strict aliasing rules and can lead to compiler optimizations that incorrectly assume pointers are not modified (leaving them as NULL).

@willyzha willyzha force-pushed the fix-strict-aliasing branch from 4cc2e8c to 10c9f2e Compare June 13, 2026 15:07
This eliminates the need for unsafe type casts, (uint8_t**)&param, which
violates strict aliasing rules and can lead to compiler optimizations
that incorrectly assume pointers are not modified (leaving them as NULL).
@willyzha willyzha force-pushed the fix-strict-aliasing branch from 10c9f2e to 5810771 Compare June 15, 2026 18:59
@ashncook ashncook merged commit 0d24159 into google:main Jun 15, 2026
9 checks passed
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.

3 participants