Olympus: harden media and package ingestion #7

Closed
bmjask wants to merge 1 commit from upstream-pr/8 into main
bmjask commented 2026-11-21 16:39:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-11-21T16:39:43Z.


Summary

  • deduplicates concurrent DXIL compilation within and across processes
  • structurally validates cached DXIL and rebuilds corrupt entries
  • hardens RPF scanning, inflation, duplicate extraction, atomic output, truncated headers, and failure reporting
  • contains no protected-package decryption or DRM bypass

Rooted at current upstream main, including the newly landed real Opus decoder.

<!-- greyfinch-sync:ivall/xcl:issue:6531541953 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/8). Originally posted by [bmjask](https://github.com/bmjask) on 2026-11-21T16:39:43Z. --- ## Summary - deduplicates concurrent DXIL compilation within and across processes - structurally validates cached DXIL and rebuilds corrupt entries - hardens RPF scanning, inflation, duplicate extraction, atomic output, truncated headers, and failure reporting - contains no protected-package decryption or DRM bypass Rooted at current upstream `main`, including the newly landed real Opus decoder.
upstream-sync closed this pull request 2026-11-24 06:56:43 +00:00
ivall commented 2026-11-24 07:00:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ivall on 2026-11-21T16:56:32Z.


Thanks! Merged the reviewed version (c3049b0) in 9ebb9b1, without its XAudio2 part: #3 decodes Opus now, and the frame-duration table there had SILK / hybrid sizes off vs RFC 6716 table 2.

Follow-up in b1477f8: the cached_only check now comes before the single-flight / cross-process locks. Otherwise the title's thread waits for a worker compiling the same shader, which defeats non-blocking pipeline creation (the newer push still has the old order).

The DXC toolchain id in the cache key and validating freshly compiled DXIL are good ideas – a new PR on top of current main is welcome. Hashing the whole dxcompiler.dll byte by byte is slow in debug builds though; size + modification time would do. Closing this one.

<!-- greyfinch-sync:ivall/xcl:comment:7066080682 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/8#issuecomment-7066080682). Originally posted by [ivall](https://github.com/ivall) on 2026-11-21T16:56:32Z. --- Thanks! Merged the reviewed version (c3049b0) in 9ebb9b1, without its XAudio2 part: #3 decodes Opus now, and the frame-duration table there had SILK / hybrid sizes off vs RFC 6716 table 2. Follow-up in b1477f8: the `cached_only` check now comes before the single-flight / cross-process locks. Otherwise the title's thread waits for a worker compiling the same shader, which defeats non-blocking pipeline creation (the newer push still has the old order). The DXC toolchain id in the cache key and validating freshly compiled DXIL are good ideas – a new PR on top of current main is welcome. Hashing the whole `dxcompiler.dll` byte by byte is slow in debug builds though; size + modification time would do. Closing this one.
ivall commented 2026-11-24 07:00:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ivall on 2026-11-21T16:59:12Z.


Sorry – I closed this too early while you were still pushing updates, and GitHub won't let me reopen it because the branch was force-pushed since. Please just open a new PR from the same branch; it'll get a normal review and won't be closed on you. The notes above still apply (what's already on main, what I changed).

<!-- greyfinch-sync:ivall/xcl:comment:7066117982 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/8#issuecomment-7066117982). Originally posted by [ivall](https://github.com/ivall) on 2026-11-21T16:59:12Z. --- Sorry – I closed this too early while you were still pushing updates, and GitHub won't let me reopen it because the branch was force-pushed since. Please just open a new PR from the same branch; it'll get a normal review and won't be closed on you. The notes above still apply (what's already on main, what I changed).

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!7
No description provided.