Repository navigation
Add safe variable-length audio formats - #141
Merged
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9ef7fa55-eb2a-4360-bd17-05feae50fadb
Model FORMATETC and STGMEDIUM as dedicated COM ABI values, generate a caller-owned IDataObject SetData projection, and validate real HGLOBAL cleanup paths. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9ef7fa55-eb2a-4360-bd17-05feae50fadb
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9ef7fa55-eb2a-4360-bd17-05feae50fadb
Model WAVEFORMATEX and WAVEFORMATEXTENSIBLE as validated COM values, project IAudioClient format negotiation with exact conditional ownership, and retain generated unsafe coverage through a WinML fixture. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9ef7fa55-eb2a-4360-bd17-05feae50fadb
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9ef7fa55-eb2a-4360-bd17-05feae50fadb
Use the official IWbemServices vtable through ExecMethodAsync and return ABI-correct IWbemClassObject and IWbemCallResult tear-offs with canonical identity and shared reference counting. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9ef7fa55-eb2a-4360-bd17-05feae50fadb
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9ef7fa55-eb2a-4360-bd17-05feae50fadb
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9ef7fa55-eb2a-4360-bd17-05feae50fadb
Pin IDataObject and inherited IOleCache SetData inputs to caller-retained ownership. Model canonical FORMATETC result validity in the COM plan, preserve semantic HRESULTs, and keep ordinary FORMATETC decoding strict. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9ef7fa55-eb2a-4360-bd17-05feae50fadb
Preserve the audio format contracts and WinML unsafe fixture while incorporating borrowed IOleCache SetData and canonical FORMATETC result rules. Regenerate the combined contract evidence census without changing safe coverage. Remaining generator-dependent validation is blocked locally by Microsoft Defender quarantine of the debug codegen executable (OS error 225). Published with user approval; no antivirus settings or quarantined files were changed. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9ef7fa55-eb2a-4360-bd17-05feae50fadb
Pin IDataObject::GetDataHere to caller-owned, non-replacing HGLOBAL storage. Reject unproven STGMEDIUM InOut projections such as IWiaDataTransfer, preserve the existing runtime API, and update capability evidence and coverage baselines. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9ef7fa55-eb2a-4360-bd17-05feae50fadb
Retain the audio-format contracts while requiring exact caller-allocation preservation evidence for STGMEDIUM InOut. Update the combined census to 5,696 safe interfaces and keep WIA file-transfer methods outside safe projection. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9ef7fa55-eb2a-4360-bd17-05feae50fadb
Add exact nullable-input contracts for IMDSPDeviceControl and IWMDMDeviceControl Record. Preserve nullability through generated declarations, COM signatures and native pointer marshalling while keeping other audio-format inputs required. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9ef7fa55-eb2a-4360-bd17-05feae50fadb
Preserve the storage-medium fixes after the squash merge of #139 and incorporate the upstream benchmark dependency lockfile update. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9ef7fa55-eb2a-4360-bd17-05feae50fadb
Keep the audio and nullable Record fixes intact while inheriting the merged stabilization history and latest main dependency update. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9ef7fa55-eb2a-4360-bd17-05feae50fadb
The main tree is identical to the storage-medium parent already contained in this branch. Reconcile squash ancestry while preserving the complete audio-format and nullable Record implementation unchanged. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9ef7fa55-eb2a-4360-bd17-05feae50fadb
shisan (qiutongMS)
approved these changes
Sep 7, 2026
Mixed-language test coverageWorkflow status: ✅ Passed
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
DynComAudioFormatfor validated variable-length WAVEFORMATEX/WAVEFORMATEXTENSIBLE storage and PCM constructionValidation
cargo test -p dynwinrt -p dynwinrt-codegennpm run test:generated-unsafenpm run buildandnpm test(known WinUI timing test passed on isolated rerun)