Skip to content

fix: copy va_list before formatter retries - #5

Open
sit-d wants to merge 1 commit into
bitRAKE:mainfrom
sit-d:curation/copy-va-list-formatting-2026-07-05
Open

fix: copy va_list before formatter retries#5
sit-d wants to merge 1 commit into
bitRAKE:mainfrom
sit-d:curation/copy-va-list-formatting-2026-07-05

Conversation

@sit-d

@sit-d sit-d commented Jul 5, 2026

Copy link
Copy Markdown

Summary

  • copy each variadic argument list before the first formatting attempt in errnfo, modsnap, and wchain
  • copy the original list again before the dynamic-buffer fallback so truncated output does not reuse an advanced va_list

Verification

  • python3 verifier confirmed the touched formatter blocks use va_copy/va_end for the stack and fallback formatting attempts
  • git diff --check HEAD~1..HEAD passed

Notes

  • Full Windows builds were not run because the Windows SDK/MSVC toolchain is required.

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