Skip to content

tests: zero-initialize the preparsed data header - #864

Merged
Youw merged 1 commit into
masterfrom
initialize-reconstructor-header
Nov 25, 2026
Merged

Youw merged 1 commit into
masterfrom
initialize-reconstructor-header

Conversation

@Youw

@Youw Youw commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Zero-initialize the reconstructor test's temporary preparsed-data header at its declaration and remove the separate memset. MSVC 19.52 accepts this form with C4815 enabled. The parser still allocates the variable-length data after reading its size.

Verified on the failing master revision with MSVC 19.52, x64 Release, and /W4 /WX. All 25 descriptor reconstruction tests passed.

Closes: #863

Assisted-by: Codex:GPT-6

Initialize the fixed header at its declaration so the MSVC reconstructor test builds with C4815 enabled under /W4 /WX.

Assisted-by: Codex:GPT-6
@Youw
Youw merged commit ab213c1 into master Nov 25, 2026
31 checks passed
@Youw
Youw deleted the initialize-reconstructor-header branch November 25, 2026 16:32
@mcuee mcuee added the Test Related to built-in test (not hidtest) label Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Test Related to built-in test (not hidtest)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants