Skip to content

ID3v2: Correct growing WAV and AIFF stream sizes - #725

Merged
Serial-ATA merged 2 commits into
Serial-ATA:mainfrom
floydnant:fix/iff-id3-growth-size
Sep 20, 2026
Merged

Serial-ATA merged 2 commits into
Serial-ATA:mainfrom
floydnant:fix/iff-id3-growth-size

Conversation

@floydnant

Copy link
Copy Markdown
Contributor

Fix the trailing ID3 chunk fast path so tag growth increases the outer RIFF/FORM stream size.

Add regression coverage for WAV and AIFF using existing fixtures.

Closes #724.

@Serial-ATA

Copy link
Copy Markdown
Owner

🤦 thanks, I thought there was a test for this already but looks like I only have MP3 covered:

fn id3v2_resize() {
tag_resize_test("tests/files/assets/minimal/full_test.mp3", TagType::Id3v2);
}

When I get a chance I'll update those tests to get them running for all supported formats, then we can drop the tests from this PR

@Serial-ATA
Serial-ATA force-pushed the fix/iff-id3-growth-size branch from 2ba0362 to 1338c3f Compare September 20, 2026 17:19
@Serial-ATA

Copy link
Copy Markdown
Owner

Actually, I'll keep these tests around for now. Looks like FFmpeg (which is used in the resize tests) doesn't care about the stream length, so the broken containers would pass anyway. Might look into stricter validation tools in the future

@Serial-ATA
Serial-ATA merged commit 4bbdb0f into Serial-ATA:main Sep 20, 2026
5 checks passed
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.

ID3v2: Growing a trailing WAV or AIFF chunk decreases the container size

2 participants