Skip to content

Fix increments for void pointers#431

Open
kojiws wants to merge 1 commit into
wolfSSL:mainfrom
kojiws:fix_void_pointer_increment
Open

Fix increments for void pointers#431
kojiws wants to merge 1 commit into
wolfSSL:mainfrom
kojiws:fix_void_pointer_increment

Conversation

@kojiws

@kojiws kojiws commented Jun 29, 2026

Copy link
Copy Markdown

Summary

  • Add -Wpointer-arith to CFLAGS_EXTRA in test/Makefile to catch void pointer arithmetic at build time.
  • Fix void pointer arithmetic in src/wh_server_crypto.c and src/wh_server_keystore.c.

Test

  • cd test && make clean && make WOLFSSL_DIR=<WOLFSSL_DIR> run
  • cd test && make clean && make DMA=1 ASAN=1 WOLFSSL_DIR=<WOLFSSL_DIR> run

@kojiws kojiws marked this pull request as draft June 29, 2026 09:00
@kojiws kojiws force-pushed the fix_void_pointer_increment branch from 59ef5ec to b2e5253 Compare June 29, 2026 09:31
@kojiws kojiws marked this pull request as ready for review June 29, 2026 09:32
@kojiws

kojiws commented Jun 29, 2026

Copy link
Copy Markdown
Author

This PR needs rebase after #428 or #429 has been merged because the base main branch of this PR has problem with tests.

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fenrir Automated Review — PR #431

Scan targets checked: wolfhsm-core-bugs, wolfhsm-crypto-bugs, wolfhsm-src

No new issues found in the changed files. ✅

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.

2 participants