fix(build): add memset_explicit C shim for Windows MinGW libsodium linking #117

Merged
sarman merged 1 commits from fix/cargo-config-sodium into beta 2026-06-19 04:06:36 +00:00
Owner
  1. memset_s_shim.c - C implementation of memset_explicit for Windows MinGW
  2. build.rs (restored) - Already configured to compile the shim for Windows targets
  3. auto-tag.yml & release-beta.yml - Installing libsodium-dev and rpm in build jobs
  4. PR review model - Switched to qwen3.5-122b-think
1. memset_s_shim.c - C implementation of memset_explicit for Windows MinGW 2. build.rs (restored) - Already configured to compile the shim for Windows targets 3. auto-tag.yml & release-beta.yml - Installing libsodium-dev and rpm in build jobs 4. PR review model - Switched to qwen3.5-122b-think
sarman added 1 commit 2026-06-19 03:58:39 +00:00
fix(build): add memset_explicit C shim for Windows MinGW libsodium linking
Some checks failed
PR Review Automation / review (pull_request) Successful in 4m53s
Test / rust-tests (pull_request) Has been cancelled
Test / rust-clippy (pull_request) Has been cancelled
Test / rust-fmt-check (pull_request) Has been cancelled
Test / frontend-tests (pull_request) Successful in 1m52s
Test / frontend-typecheck (pull_request) Successful in 2m3s
b6ecd49b52
sarman reviewed 2026-06-19 04:03:30 +00:00
sarman left a comment
Author
Owner

Automated PR Review (qwen3.5-122b-think via liteLLM):\n\n

Summary

The provided change implements a C shim for memset_explicit, addressing a linking issue with libsodium-sys-stable on Windows MinGW. The implementation correctly uses volatile to prevent compiler optimization of memory writes, which is the primary security requirement for secure memory clearing functions. No high-signal issues, syntax errors, or security vulnerabilities were detected in the provided C file.

Findings

No findings.

Verdict: APPROVE

Automated PR Review (qwen3.5-122b-think via liteLLM):\n\n **Summary** The provided change implements a C shim for `memset_explicit`, addressing a linking issue with `libsodium-sys-stable` on Windows MinGW. The implementation correctly uses `volatile` to prevent compiler optimization of memory writes, which is the primary security requirement for secure memory clearing functions. No high-signal issues, syntax errors, or security vulnerabilities were detected in the provided C file. **Findings** No findings. **Verdict**: APPROVE
sarman merged commit 144c811a7a into beta 2026-06-19 04:06:36 +00:00
sarman deleted branch fix/cargo-config-sodium 2026-06-19 04:06:36 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sarman/tftsr-devops_investigation#117
No description provided.