Skip to content

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

Open
willyzha wants to merge 1 commit into
google:mainfrom
willyzha:fix-strict-aliasing
Open

Fix htool security v2 comand to avoid strict aliasing violations#274
willyzha wants to merge 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).

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
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