Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

20250220-misc-UnalignedWord64 #8482

Merged
merged 3 commits into from
Feb 21, 2025

Conversation

douzzer
Copy link
Contributor

@douzzer douzzer commented Feb 20, 2025

misc.c: undo changes in 82b50f1 "when Intel x64 build, assume able to read/write unaligned" -- provokes sanitizer on amd64, and is not portable (e.g. different behavior on Intel vs AMD). all performance-sensitive word64 reads/writes should be on known-aligned data.

wolfssl/wolfcrypt/types.h: don't define HAVE_EMPTY_AGGREGATES when defined(__cplusplus) (fixes #8478).

wolfcrypt/test/test.c: fix return values in camellia_test() (also fixes some false positive -Wreturn-stack-addresses from clang++).

tested with wolfssl-multi-test.sh ... quantum-safe-wolfssl-all-noasm-sanitizer 'quantum-safe-wolfssl-all-clang\+\+-latest' (the latter a new scenario).

… read/write unaligned" -- provokes sanitizer on amd64, and is not portable (e.g. different behavior on Intel vs AMD). all performance-sensitive word64 reads/writes should be on known-aligned data.
…es some false positive -Wreturn-stack-addresses from clang++).
@douzzer
Copy link
Contributor Author

douzzer commented Feb 20, 2025

retest this please (org.jenkinsci.plugins.workflow.support.steps.AgentOfflineException on two subtests)

@douzzer douzzer assigned wolfSSL-Bot and unassigned SparkiDev Feb 21, 2025
@JacobBarthelmeh JacobBarthelmeh merged commit 8ae1225 into wolfSSL:master Feb 21, 2025
178 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.

[Bug]: clang++-18 generates warning: struct has size 0 in C, size 1 in C++ [-Wextern-c-compat]
5 participants