From 4e8441c33032242a00c6c82d75ba7e01361d0373 Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Mon, 2 Nov 2026 23:09:34 -0800 Subject: [PATCH 1/3] chore(quest): claim quest/m1/fuzz-findings/mp4-atom-iloc.md Quest-Claim: 2d2735ba26696b3a From e2cfd8122562faf3dcd9917c4577fd7a486a4c76 Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Mon, 2 Nov 2026 23:13:45 -0800 Subject: [PATCH 2/3] quest: record the mp4-atom iloc fix as kixelated/mp4-atom#267 The fix is up for review upstream. The quest now waits on it merging, then commits the cmaf regression input with the mp4-atom bump. Co-Authored-By: Claude Opus 5.5 --- quest/m1/fuzz-findings/README.md | 2 +- quest/m1/fuzz-findings/mp4-atom-bump.md | 3 ++- quest/m1/fuzz-findings/mp4-atom-iloc.md | 30 ++++++++++++++++--------- 3 files changed, 22 insertions(+), 13 deletions(-) diff --git a/quest/m1/fuzz-findings/README.md b/quest/m1/fuzz-findings/README.md index 7992ba83af4..f9729a7e766 100644 --- a/quest/m1/fuzz-findings/README.md +++ b/quest/m1/fuzz-findings/README.md @@ -39,5 +39,5 @@ fixed the MKV block-header panic; its input is - [moq-mux on a fixed mp4-atom](/quest/m1/fuzz-findings/mp4-atom-bump.md) - waiting on a 0.17.x release containing kixelated/mp4-atom#264, then moq-mux bumps to it and commits the `sgpd` and `iref` regressions - [TS step scan stays ordered](/quest/m1/fuzz-findings/ts-step-scan.md) - the step detector's look-ahead never subtracts past its start - [SPS fields cannot overflow](/quest/m1/fuzz-findings/sps-overflow.md) - hostile H.264 and H.265 SPS crop and size fields are refused instead of wrapping -- [mp4-atom iloc is bounded](/quest/m1/fuzz-findings/mp4-atom-iloc.md) - zero-size `iloc` extents cannot allocate megabytes from a few bytes +- [mp4-atom iloc is bounded](/quest/m1/fuzz-findings/mp4-atom-iloc.md) - zero-size `iloc` extents cannot allocate megabytes from a few bytes; waiting on kixelated/mp4-atom#267, then the bump and its `cmaf` regression input - [A catalog update reuses its encoder](/quest/m1/fuzz-findings/catalog-encoder.md) - republishing a compressed catalog or HLS group stops allocating a fresh DEFLATE encoder (about 200 KB) each time diff --git a/quest/m1/fuzz-findings/mp4-atom-bump.md b/quest/m1/fuzz-findings/mp4-atom-bump.md index 5f57fb053a0..e839fceb0cc 100644 --- a/quest/m1/fuzz-findings/mp4-atom-bump.md +++ b/quest/m1/fuzz-findings/mp4-atom-bump.md @@ -19,7 +19,8 @@ moq-mux is already on 0.17.0 the `meta/iref.rs` subtract overflow (kixelated/mp4-atom#219), so what remains is a move within 0.17 and the regression inputs. If the [iloc fix](/quest/m1/fuzz-findings/mp4-atom-iloc.md) merges before the -release, the same bump covers it. +release, the same bump covers it: its upstream fix is +[kixelated/mp4-atom#267](https://github.com/kixelated/mp4-atom/pull/267). Public API: none expected in moq-mux. Wire: none. diff --git a/quest/m1/fuzz-findings/mp4-atom-iloc.md b/quest/m1/fuzz-findings/mp4-atom-iloc.md index a91e56f1183..740020c95d3 100644 --- a/quest/m1/fuzz-findings/mp4-atom-iloc.md +++ b/quest/m1/fuzz-findings/mp4-atom-iloc.md @@ -1,4 +1,4 @@ -# [S] mp4-atom iloc is bounded +# [XS] mp4-atom iloc is bounded ## Goal @@ -12,16 +12,24 @@ offset, length and index sizes are all 0, each extent consumes no input, so every 6-byte item can push 65,535 extents (about 1.5 MB), and the item count repeats that. -Fix it in [kixelated/mp4-atom](https://github.com/kixelated/mp4-atom), as -[#264](https://github.com/kixelated/mp4-atom/pull/264) did for `sgpd`. A -plain count-versus-remaining-bytes check, which `sgpd` and `evte` use, would -refuse a valid single zero-size extent at the end of the box. Instead, decode -fails on a zero-size extent (one that takes no bytes of the box) after an -item's first extent, so a valid single zero-size extent still decodes -(decided 2026-10-30, maintainer). The fix does not cut a release. +[kixelated/mp4-atom#267](https://github.com/kixelated/mp4-atom/pull/267) +fixes it, as [#264](https://github.com/kixelated/mp4-atom/pull/264) did for +`sgpd`: decode fails with `OutOfBounds` on a zero-size extent (one that takes +no bytes of the box) after an item's first extent, so a valid single +zero-size extent still decodes (decided 2026-10-30, maintainer). A plain +count-versus-remaining-bytes check, which `sgpd` and `evte` use, would refuse +that valid extent at the end of the box. The fix does not cut a release. -Then bump moq-mux with the -[mp4-atom bump](/quest/m1/fuzz-findings/mp4-atom-bump.md), or its own bump if -that has landed, and commit the input under `rs/moq-mux/fuzz/regressions/`. +Once #267 merges, moq-mux picks it up with the +[mp4-atom bump](/quest/m1/fuzz-findings/mp4-atom-bump.md), or with its own +bump if that one has already landed. Then commit the 31-byte `cmaf` input from +[moq-dev/moq#7313's comment](https://github.com/moq-dev/moq/pull/7313#issuecomment-6520535160) +(`AB0AAAAcaWxvYwAAcwAAACAAyP////8AAAD///8AAA==`) as +`rs/moq-mux/fuzz/regressions/cmaf/mp4-atom-iloc`. Do not commit it before the +bump, since the merge gate would fail on it. Public API: none expected in moq-mux. Wire: none. + +## Waiting + +- Maintainer: merge [kixelated/mp4-atom#267](https://github.com/kixelated/mp4-atom/pull/267); check that it is merged and that the mp4-atom release the bump moves to contains its commit From fff5e66a5b5794bea153c2c1c6f4e9f076add607 Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Tue, 3 Nov 2026 09:25:53 -0800 Subject: [PATCH 3/3] quest: kixelated/mp4-atom#267 merged; the bump finishes iloc The iloc fix merged upstream as kixelated/mp4-atom@2f19362. What remains, moving to the release and committing the cmaf input, is tracked in the mp4-atom bump, whose PR also deletes the iloc quest. Co-Authored-By: Claude Opus 5.5 --- quest/m1/fuzz-findings/README.md | 4 +-- quest/m1/fuzz-findings/mp4-atom-bump.md | 28 +++++++++++++------- quest/m1/fuzz-findings/mp4-atom-iloc.md | 34 ++++++++++++------------- 3 files changed, 37 insertions(+), 29 deletions(-) diff --git a/quest/m1/fuzz-findings/README.md b/quest/m1/fuzz-findings/README.md index 13c28d4b6ec..e53ce9edbaa 100644 --- a/quest/m1/fuzz-findings/README.md +++ b/quest/m1/fuzz-findings/README.md @@ -36,7 +36,7 @@ fixed the MKV block-header panic; its input is ## Required -- [moq-mux on a fixed mp4-atom](/quest/m1/fuzz-findings/mp4-atom-bump.md) - waiting on a 0.17.x release containing kixelated/mp4-atom#264, then moq-mux bumps to it and commits the `sgpd` and `iref` regressions +- [moq-mux on a fixed mp4-atom](/quest/m1/fuzz-findings/mp4-atom-bump.md) - waiting on a 0.17.x release containing kixelated/mp4-atom#264 and #267, then moq-mux bumps to it and commits the `sgpd`, `iref` and `iloc` regressions - [SPS fields cannot overflow](/quest/m1/fuzz-findings/sps-overflow.md) - hostile H.264 and H.265 SPS crop and size fields are refused instead of wrapping -- [mp4-atom iloc is bounded](/quest/m1/fuzz-findings/mp4-atom-iloc.md) - zero-size `iloc` extents cannot allocate megabytes from a few bytes; waiting on kixelated/mp4-atom#267, then the bump and its `cmaf` regression input +- [mp4-atom iloc is bounded](/quest/m1/fuzz-findings/mp4-atom-iloc.md) - zero-size `iloc` extents cannot allocate megabytes from a few bytes; fixed upstream by kixelated/mp4-atom#267, finished by the mp4-atom bump - [A catalog update reuses its encoder](/quest/m1/fuzz-findings/catalog-encoder.md) - republishing a compressed catalog or HLS group stops allocating a fresh DEFLATE encoder (about 200 KB) each time diff --git a/quest/m1/fuzz-findings/mp4-atom-bump.md b/quest/m1/fuzz-findings/mp4-atom-bump.md index e839fceb0cc..aaf79e1397a 100644 --- a/quest/m1/fuzz-findings/mp4-atom-bump.md +++ b/quest/m1/fuzz-findings/mp4-atom-bump.md @@ -3,27 +3,37 @@ ## Goal moq-mux depends on an mp4-atom release with the `sgpd` entry-count bound -from [kixelated/mp4-atom#264](https://github.com/kixelated/mp4-atom/pull/264), -so the 22-byte init that grows a Vec past 3 GB in 0.17.0 fails to decode. -The `cmaf` and `fmp4` targets' `sgpd` and `iref` inputs are committed under +from [kixelated/mp4-atom#264](https://github.com/kixelated/mp4-atom/pull/264) +and the `iloc` zero-size extent bound from +[kixelated/mp4-atom#267](https://github.com/kixelated/mp4-atom/pull/267), so +the 22-byte init that grows a Vec past 3 GB and the 31 bytes of `iloc` that +allocate about 6 MB in 0.17.0 fail to decode. The `cmaf` and `fmp4` targets' +`sgpd`, `iref` and `iloc` inputs are committed under `rs/moq-mux/fuzz/regressions/`. ## Plan #264 merged on 2026-10-30 as kixelated/mp4-atom@06a532aabe47ea108343557fec4cf6c646c2a980, after 0.17.0 -was published, so 0.17.0 lacks it. +was published, so 0.17.0 lacks it. #267 merged on 2026-11-03 as +kixelated/mp4-atom@2f1936206579b4c64d1d90538989246044e42ed6; the pending +release PR [kixelated/mp4-atom#260](https://github.com/kixelated/mp4-atom/pull/260) +picks up both. moq-mux is already on 0.17.0 ([moq-dev/moq#7308](https://github.com/moq-dev/moq/pull/7308)), which fixes the `meta/iref.rs` subtract overflow (kixelated/mp4-atom#219), so what remains -is a move within 0.17 and the regression inputs. If the -[iloc fix](/quest/m1/fuzz-findings/mp4-atom-iloc.md) merges before the -release, the same bump covers it: its upstream fix is -[kixelated/mp4-atom#267](https://github.com/kixelated/mp4-atom/pull/267). +is a move within 0.17 and the regression inputs. The `iloc` input is the +31-byte `cmaf` one from +[moq-dev/moq#7313's comment](https://github.com/moq-dev/moq/pull/7313#issuecomment-6520535160) +(`AB0AAAAcaWxvYwAAcwAAACAAyP////8AAAD///8AAA==`), committed as +`rs/moq-mux/fuzz/regressions/cmaf/mp4-atom-iloc`; on 0.17.0 the replay +reports 6,291,464 bytes allocated, and with #267 it passes. This quest's PR +also completes the [iloc quest](/quest/m1/fuzz-findings/mp4-atom-iloc.md) and +deletes it. Public API: none expected in moq-mux. Wire: none. ## Waiting -- Maintainer: cut an mp4-atom 0.17.x release that contains kixelated/mp4-atom@06a532aabe47ea108343557fec4cf6c646c2a980 (agents do not cut it); check that crates.io's latest mp4-atom is above 0.17.0 and that its tag contains that commit +- Maintainer: cut an mp4-atom 0.17.x release that contains kixelated/mp4-atom@06a532aabe47ea108343557fec4cf6c646c2a980 and kixelated/mp4-atom@2f1936206579b4c64d1d90538989246044e42ed6 (agents do not cut it); check that crates.io's latest mp4-atom is above 0.17.0 and that its tag contains both commits diff --git a/quest/m1/fuzz-findings/mp4-atom-iloc.md b/quest/m1/fuzz-findings/mp4-atom-iloc.md index 740020c95d3..3a00dd0b3ad 100644 --- a/quest/m1/fuzz-findings/mp4-atom-iloc.md +++ b/quest/m1/fuzz-findings/mp4-atom-iloc.md @@ -7,29 +7,27 @@ target, 31 bytes of `iloc` no longer allocate about 6 MB. ## Plan -`src/meta/iloc.rs` decodes `extent_count` extents per item. When the +`src/meta/iloc.rs` decoded `extent_count` extents per item. When the offset, length and index sizes are all 0, each extent consumes no input, so -every 6-byte item can push 65,535 extents (about 1.5 MB), and the item count -repeats that. +every 6-byte item could push 65,535 extents (about 1.5 MB), and the item +count repeated that. [kixelated/mp4-atom#267](https://github.com/kixelated/mp4-atom/pull/267) -fixes it, as [#264](https://github.com/kixelated/mp4-atom/pull/264) did for -`sgpd`: decode fails with `OutOfBounds` on a zero-size extent (one that takes -no bytes of the box) after an item's first extent, so a valid single -zero-size extent still decodes (decided 2026-10-30, maintainer). A plain -count-versus-remaining-bytes check, which `sgpd` and `evte` use, would refuse -that valid extent at the end of the box. The fix does not cut a release. - -Once #267 merges, moq-mux picks it up with the -[mp4-atom bump](/quest/m1/fuzz-findings/mp4-atom-bump.md), or with its own -bump if that one has already landed. Then commit the 31-byte `cmaf` input from -[moq-dev/moq#7313's comment](https://github.com/moq-dev/moq/pull/7313#issuecomment-6520535160) -(`AB0AAAAcaWxvYwAAcwAAACAAyP////8AAAD///8AAA==`) as -`rs/moq-mux/fuzz/regressions/cmaf/mp4-atom-iloc`. Do not commit it before the -bump, since the merge gate would fail on it. +fixed it, merging on 2026-11-03 as +kixelated/mp4-atom@2f1936206579b4c64d1d90538989246044e42ed6: decode fails +with `OutOfBounds` on a zero-size extent after an item's first extent, so a +valid single zero-size extent still decodes (decided 2026-10-30, +maintainer). The pending release PR +[kixelated/mp4-atom#260](https://github.com/kixelated/mp4-atom/pull/260) +picks it up. + +What remains is moq-mux's move to that release and the 31-byte `cmaf` +regression input, both tracked in the +[mp4-atom bump](/quest/m1/fuzz-findings/mp4-atom-bump.md); its PR completes +this quest and deletes this file. Public API: none expected in moq-mux. Wire: none. ## Waiting -- Maintainer: merge [kixelated/mp4-atom#267](https://github.com/kixelated/mp4-atom/pull/267); check that it is merged and that the mp4-atom release the bump moves to contains its commit +- Maintainer: cut an mp4-atom 0.17.x release that contains kixelated/mp4-atom@2f1936206579b4c64d1d90538989246044e42ed6 (agents do not cut it); check that crates.io's latest mp4-atom is above 0.17.0 and that its tag contains that commit