Skip to content

ci: bump actions/upload-artifact from 4 to 6 - #1

Closed
dependabot[bot] wants to merge 2 commits into
mainfrom
dependabot/github_actions/actions/upload-artifact-6
Closed

dependabot[bot] wants to merge 2 commits into
mainfrom
dependabot/github_actions/actions/upload-artifact-6

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 25, 2025

Copy link
Copy Markdown
Contributor

Bumps actions/upload-artifact from 4 to 6.

Release notes

Sourced from actions/upload-artifact's releases.

v6.0.0

v6 - What's new

[!IMPORTANT] actions/upload-artifact@v6 now runs on Node.js 24 (runs.using: node24) and requires a minimum Actions Runner version of 2.327.1. If you are using self-hosted runners, ensure they are updated before upgrading.

Node.js 24

This release updates the runtime to Node.js 24. v5 had preliminary support for Node.js 24, however this action was by default still running on Node.js 20. Now this action by default will run on Node.js 24.

What's Changed

Full Changelog: actions/upload-artifact@v5.0.0...v6.0.0

v5.0.0

What's Changed

BREAKING CHANGE: this update supports Node v24.x. This is not a breaking change per-se but we're treating it as such.

New Contributors

Full Changelog: actions/upload-artifact@v4...v5.0.0

v4.6.2

What's Changed

New Contributors

Full Changelog: actions/upload-artifact@v4...v4.6.2

v4.6.1

What's Changed

... (truncated)

Commits
  • b7c566a Merge pull request #745 from actions/upload-artifact-v6-release
  • e516bc8 docs: correct description of Node.js 24 support in README
  • ddc45ed docs: update README to correct action name for Node.js 24 support
  • 615b319 chore: release v6.0.0 for Node.js 24 support
  • 017748b Merge pull request #744 from actions/fix-storage-blob
  • 38d4c79 chore: rebuild dist
  • 7d27270 chore: add missing license cache files for @​actions/core, @​actions/io, and mi...
  • 5f643d3 chore: update license files for @​actions/artifact@​5.0.1 dependencies
  • 1df1684 chore: update package-lock.json with @​actions/artifact@​5.0.1
  • b5b1a91 fix: update @​actions/artifact to ^5.0.0 for Node.js 24 punycode fix
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

decriptor-harman and others added 2 commits December 25, 2025 00:52
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 6.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@v4...v6)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code labels Dec 25, 2025
@decriptor decriptor closed this Dec 25, 2025
@dependabot @github

dependabot Bot commented on behalf of github Dec 25, 2025

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/github_actions/actions/upload-artifact-6 branch December 25, 2025 08:22
decriptor added a commit that referenced this pull request Apr 19, 2026
Five review comments on #30 identified that the CombinedTag and FlacTag
facades had semantics inconsistent with the Tag abstraction and with
the rest of the IMediaFile implementations. All five are addressed:

1. CombinedTag.Render was a silent no-op returning empty bytes. A
   CombinedTag is a view, not a serializable block -- rendering it
   should surface misuse. Now throws NotSupportedException with a
   message pointing callers to the owning file or a specific underlying
   tag.

2. CombinedTag.Clear was a silent no-op. "Clear the tag" must actually
   zero out the metadata, not succeed while leaving the values intact.
   Now clears every non-null underlying tag.

3. CombinedTag setters were silent no-ops. Code in this repo and
   documented examples assume `file.Tag.Title = "x"` mutates the file,
   so silently dropping writes broke a load-bearing contract. Setters
   now write through to every non-null underlying tag, which also keeps
   ID3v2 + ID3v1 consistent on save.

4. FlacFile.Tag and Mp3File.Tag always returned a non-null facade even
   on files with no metadata. Other IMediaFile implementations (Dsf,
   Dff, Musepack, WavPack, MonkeysAudio, Ogg*, Asf, Mp4, Aiff) return
   null when the tag block is absent. Both now match that convention:
   null when the file has neither an underlying tag nor pictures.

5. FlacTag.Render/Clear had the same issue as #1-2. Render now throws
   NotSupportedException (a FlacTag spans multiple metadata blocks --
   render the FlacFile); Clear now wipes the VorbisComment fields
   (including embedded METADATA_BLOCK_PICTURE entries via
   VorbisComment.Clear) and removes native PICTURE blocks.

Test updates:

* CombinedTagTests: replaced the three no-op characterization tests with
  their mirror-image positive tests (setters write through, Render
  throws, Clear clears every member).
* FlacTagTests: replaced the combined "Render+Clear are no-ops" test
  with separate positive tests for Render throwing and Clear clearing.
  Added Tag_AbsentMetadata_ReturnsNull to lock in the nullability
  contract. Updated tests that started from a CreateMinimal() FLAC
  (Tag == null now) to seed with a VorbisComment first.
* Mp3FileTests: added Tag_NoTagsPresent_ReturnsNull for the nullability
  contract and Tag_Setter_WritesThroughToBothIdTags to verify the
  write-through behavior keeps v2 and v1 in sync.

All 3807 functional tests pass on net8.0 and net10.0.
decriptor added a commit that referenced this pull request Nov 14, 2026
Five review comments on #30 identified that the CombinedTag and FlacTag
facades had semantics inconsistent with the Tag abstraction and with
the rest of the IMediaFile implementations. All five are addressed:

1. CombinedTag.Render was a silent no-op returning empty bytes. A
   CombinedTag is a view, not a serializable block -- rendering it
   should surface misuse. Now throws NotSupportedException with a
   message pointing callers to the owning file or a specific underlying
   tag.

2. CombinedTag.Clear was a silent no-op. "Clear the tag" must actually
   zero out the metadata, not succeed while leaving the values intact.
   Now clears every non-null underlying tag.

3. CombinedTag setters were silent no-ops. Code in this repo and
   documented examples assume `file.Tag.Title = "x"` mutates the file,
   so silently dropping writes broke a load-bearing contract. Setters
   now write through to every non-null underlying tag, which also keeps
   ID3v2 + ID3v1 consistent on save.

4. FlacFile.Tag and Mp3File.Tag always returned a non-null facade even
   on files with no metadata. Other IMediaFile implementations (Dsf,
   Dff, Musepack, WavPack, MonkeysAudio, Ogg*, Asf, Mp4, Aiff) return
   null when the tag block is absent. Both now match that convention:
   null when the file has neither an underlying tag nor pictures.

5. FlacTag.Render/Clear had the same issue as #1-2. Render now throws
   NotSupportedException (a FlacTag spans multiple metadata blocks --
   render the FlacFile); Clear now wipes the VorbisComment fields
   (including embedded METADATA_BLOCK_PICTURE entries via
   VorbisComment.Clear) and removes native PICTURE blocks.

Test updates:

* CombinedTagTests: replaced the three no-op characterization tests with
  their mirror-image positive tests (setters write through, Render
  throws, Clear clears every member).
* FlacTagTests: replaced the combined "Render+Clear are no-ops" test
  with separate positive tests for Render throwing and Clear clearing.
  Added Tag_AbsentMetadata_ReturnsNull to lock in the nullability
  contract. Updated tests that started from a CreateMinimal() FLAC
  (Tag == null now) to seed with a VorbisComment first.
* Mp3FileTests: added Tag_NoTagsPresent_ReturnsNull for the nullability
  contract and Tag_Setter_WritesThroughToBothIdTags to verify the
  write-through behavior keeps v2 and v1 in sync.

All 3807 functional tests pass on net8.0 and net10.0.
decriptor added a commit that referenced this pull request Nov 14, 2026
Five review comments on #30 identified that the CombinedTag and FlacTag
facades had semantics inconsistent with the Tag abstraction and with
the rest of the IMediaFile implementations. All five are addressed:

1. CombinedTag.Render was a silent no-op returning empty bytes. A
   CombinedTag is a view, not a serializable block -- rendering it
   should surface misuse. Now throws NotSupportedException with a
   message pointing callers to the owning file or a specific underlying
   tag.

2. CombinedTag.Clear was a silent no-op. "Clear the tag" must actually
   zero out the metadata, not succeed while leaving the values intact.
   Now clears every non-null underlying tag.

3. CombinedTag setters were silent no-ops. Code in this repo and
   documented examples assume `file.Tag.Title = "x"` mutates the file,
   so silently dropping writes broke a load-bearing contract. Setters
   now write through to every non-null underlying tag, which also keeps
   ID3v2 + ID3v1 consistent on save.

4. FlacFile.Tag and Mp3File.Tag always returned a non-null facade even
   on files with no metadata. Other IMediaFile implementations (Dsf,
   Dff, Musepack, WavPack, MonkeysAudio, Ogg*, Asf, Mp4, Aiff) return
   null when the tag block is absent. Both now match that convention:
   null when the file has neither an underlying tag nor pictures.

5. FlacTag.Render/Clear had the same issue as #1-2. Render now throws
   NotSupportedException (a FlacTag spans multiple metadata blocks --
   render the FlacFile); Clear now wipes the VorbisComment fields
   (including embedded METADATA_BLOCK_PICTURE entries via
   VorbisComment.Clear) and removes native PICTURE blocks.

Test updates:

* CombinedTagTests: replaced the three no-op characterization tests with
  their mirror-image positive tests (setters write through, Render
  throws, Clear clears every member).
* FlacTagTests: replaced the combined "Render+Clear are no-ops" test
  with separate positive tests for Render throwing and Clear clearing.
  Added Tag_AbsentMetadata_ReturnsNull to lock in the nullability
  contract. Updated tests that started from a CreateMinimal() FLAC
  (Tag == null now) to seed with a VorbisComment first.
* Mp3FileTests: added Tag_NoTagsPresent_ReturnsNull for the nullability
  contract and Tag_Setter_WritesThroughToBothIdTags to verify the
  write-through behavior keeps v2 and v1 in sync.

All 3807 functional tests pass on net8.0 and net10.0.
decriptor added a commit that referenced this pull request Nov 14, 2026
A signed shift of a STREAMINFO byte >= 0x80 sign-extends. TimeSpan.FromSeconds
then throws OverflowException and Read fails.

v003 #1: say that in the sample-count comment and the test name.
v003 #2: cover 1<<31, 0xFFFFFFFF, (1<<32)|(1<<31), and the 36-bit maximum.
v003 #3: read the low 32 bits with BinaryPrimitives.ReadUInt32BigEndian and OR in the top nibble.
decriptor added a commit that referenced this pull request Nov 14, 2026
v003 #1: a v2.4 Year write keeps a TDRC timestamp that already starts with that four-digit year, and an invalid value leaves the frame. v2.3 TYER still stores four digits. TDOR/TORY use the same invalid-value rule.

v003 #2, #4, #10: a compressed frame that does not inflate is skipped instead of parsed as text. The zlib read stays inside the declared size and the 16 MiB cap, returns that buffer when the read fills it, and no longer catches OutOfMemoryException.

v003 #3, #7: COMM descriptions that start with "iTun" are not the comment.

v003 #6: year and genre numbers reject a leading sign and surrounding spaces.

v003 #8: the syncsafe reader doc comment is back on ReadSyncsafeInt32.

v003 #9: HasExtendedHeader is true only for v2.3 and v2.4. v2.2 uses that bit for compression.

Not v003 #5: a v2.4 header unsynchronisation flag is not whole-tag unsync. That contradicts id3v2.4.0-changes and the earlier fix.
decriptor added a commit that referenced this pull request Nov 14, 2026
v003 #1: Rebase DSTI entries whose absolute offset lies after bytes removed before the sound chunk.
v003 #2: Pad an odd output before a new ID3, and correct ckDataSize on the chunk that ran past EOF.
v003 #3: Strip every ID3 chunk when writing a replacement tag, then append one.
v003 #4: Chunks after a trailing ID3 are copied.
v003 #5: A 5-byte unpadded payload re-reads, and the ID3 chunk starts even.
v003 #6: The pre-audio ID3 save test re-reads the sound payload and expects one ID3 chunk.
v003 #7: Remove unused chunk offset fields, including _id3Size, and the comment that called them render state.
v003 #8: Drop the unreachable Id3Range extendsData branch.
decriptor added a commit that referenced this pull request Nov 14, 2026
Temp names are a short prefix, guid, and suffix so a 230-character
destination still saves. The temp file is flushed to disk before
replace. If replace fails after the destination is gone, move the temp
back and keep it, with its path, when that move fails.

v003 findings: #1, #2, #3, #4, #5, #7
decriptor added a commit that referenced this pull request Nov 14, 2026
v003 #2: Codec reports MPEG-1, MPEG-2, or MPEG-2.5 with the layer. An MPEG-2 Layer II header contains MPEG-2 and Layer II, and MPEG-1 Layer III still says MPEG-1.
v003 #3: Remove the unread Layer I paddingSize store. The frame size formula is unchanged.
v003 #4: CreateMpeg2Mp3 pads from the 72-byte Layer III coefficient, 64 kbps, and the sample rate. MPEG-1 fixtures that are 417 bytes are unchanged.

Finding #1 (next-frame sync scan) is left for a follow-up. MPEG-2/2.5 Layer III stays 72, Layer II stays 144, and MPEG-1 Layer III stays 144.
decriptor added a commit that referenced this pull request Nov 14, 2026
v003 #1: omit a udta that survived in the unread moov tail.
v003 #5: cover a box kept after a bad child inside trak.
v003 #6: patch stco/co64 whenever moov changes size.
v003 #7: leave offsets put when a dref entry is not self-contained.
v003 #8: step over an illegal box by its declared size when it fits.
v003 #9: place the rebuilt udta after mvhd when the first moov child is bad.
decriptor added a commit that referenced this pull request Nov 14, 2026
v003 #1: a picture that base64-expands the Vorbis comment past 0xFFFFFF
bytes was written with a wrapped block length and SaveToFile reported
success. Render now returns empty, so the original file is left unchanged.
Preserved blocks use the same check.

v003 #7: the metadata read cap is 4 + 0xFFFFFF, so a legal maximum block
is accepted and a larger packet is not.

v003 #2: Vorbis comment and FLAC picture round trips cover packets of
65025 and 130050 bytes. Those sizes need a 0 lacing value on the next page.

v003 #3: a packet walk that fails after a comment was reassembled keeps
that comment. A failure before any complete comment still reads with none.
An illegal shared metadata and audio page is not treated as a successful parse.
decriptor added a commit that referenced this pull request Nov 14, 2026
#1 Copy original bext bytes only for the instance Read parsed.
#2 Walk chunk ckSize in long so a size near int.MaxValue does not throw.
#3 Write the RIFF form size from rendered chunk bytes, not a declared DataSize.
#4 Keep a Latin-1 bext description and a coding history with no trailing CRLF on a title-only save.
#5 AddChunk copied chunks so a second JUNK, data, or fact chunk is kept.
#6 A cleared UMID is not copied back, including when the source version at offset 346 is below 1.
#8 0xFFFFFFFF is one size calculation: a streamed-writer placeholder. RF64 is unsupported.
#9 Keep a second LIST INFO and rewrite only the INFO list this file parsed.
#10 Assigning new BextTag() or new Id3v2Tag() replaces an unparsed chunk. Null still keeps it.
decriptor added a commit that referenced this pull request Nov 14, 2026
Value lengths that do not fit the bytes remaining, including 0x80000000, 0xFFFFFFF0, and int.MaxValue, fail the parse instead of being sliced. A file that ends in ID3v1 with no APE footer still reports that suffix, so a new APE tag is written after the audio and before TAG. Item counts use an 11-byte minimum item, and the dictionary capacity stays capped.

v003 findings #1, #2, #3, #5, #6, #7. Skipped #4 (Lyrics3v2).
decriptor added a commit that referenced this pull request Nov 14, 2026
v003 #1: TotalDiscs reads a DISCNUMBER n/m total after TOTALDISCS and DISCTOTAL fail.
v003 #2: Setting Track keeps an n/m total in TOTALTRACKS, and setting TotalTracks rewrites TRACKNUMBER to its number. Discs do the same.
v003 #3: MovementTotal removes MOVEMENTCOUNT as well as MOVEMENTTOTAL.
v003 #4: Writes still store TOTALTRACKS and remove TRACKTOTAL. The setter comment notes that this canonicalizes to TOTALTRACKS.
v003 #6: Numeric fields return the first value that parses, so a later duplicate can supply the total.
v003 #8: Unsigned parsing uses CultureInfo.InvariantCulture.
v003 #7: TRACKTOTAL stays preferred over the slash. ID3 is unchanged.
decriptor added a commit that referenced this pull request Nov 14, 2026
v004 #1: CopyTo writes a validated ID3v2.4 TDRC timestamp, not only the four-digit year. A same-year copy replaces the target timestamp. CombinedTag uses that date too.

v004 #2: Expansion tests require a null title. The 16 MiB cap and the ratio each have a test that fails only when that guard is removed.

v004 #3: A compressed frame shorter than its size field is skipped, on v2.3 and v2.4.

v004 #4: Setting a v2.4 year to 2024-05-01T10:00 renders and re-reads that timestamp.

v004 #5: The inflate ratio is 1100 so a legal frame just over 1000:1 is kept. The 16 MiB cap still bounds memory.

v004 #6: An encrypted frame is not parsed as text.

v004 #7: The v2.2 compression-flag test names the deliberate leniency. The parser is unchanged.
decriptor added a commit that referenced this pull request Nov 14, 2026
v004 #1: When a new ID3 is appended, do not copy a trailing tail shorter than 12 bytes. Those bytes are not a chunk and hide the tag on re-read, including a 2048-byte zero tail whose remainder is under 12.
v004 #3: Pin that clearing a tag on a truncated sound chunk rewrites ckDataSize to the bytes present.
v004 #4: Pin that clearing a tag after an odd truncated chunk leaves an even file length.
decriptor added a commit that referenced this pull request Nov 14, 2026
WriteAndFlush and WriteAndFlushAsync own the disk flush, and both
WriteAllBytes paths call them. A failed save moves the temp back only
when the destination existed before the replace and is missing
afterward; otherwise the temp is deleted. Flush-to-disk syncs on every
save. Move's contract is a same-volume replace.

v003 findings: #1, #2, #3, #4, #8
decriptor added a commit that referenced this pull request Nov 14, 2026
v004 #1: Layer III reports "MP3" for MPEG-1, MPEG-2, and MPEG-2.5. Layer I and Layer II still include the MPEG version.
v004 #2: Exact codec strings are pinned for each version and layer.

The 72/144 frame-size formula is unchanged. Next-frame sync scan is not implemented.
decriptor added a commit that referenced this pull request Nov 14, 2026
…mples

v003 #1: do not skip a trak when any dref entry is external; follow each stsd data_reference_index.
v003 #5: a dref entry shorter than its header plus flags is unknown, not external.
decriptor added a commit that referenced this pull request Nov 14, 2026
v004 #1: a 70 KB setup packet spans pages. The round trip throws if
OggVorbisFile writes that packet with BuildOggPage, which rejects
more than 255 segments.

v004 #6: SaveToFile already fails an empty Ogg FLAC render with
"Failed to render Ogg FLAC file" when a block exceeds 0xFFFFFF.
The message is not empty, so the failure text is unchanged.
decriptor added a commit that referenced this pull request Nov 14, 2026
v003 #1 Merge every LIST INFO with first-wins and write exactly one list, so an edit is not replaced by a stale second list.
v003 #2 Drop a chunk whose declared ckSize does not fit, including ckSize 0x7FFFFFF0, instead of keeping only sizes under int.MaxValue. Duration uses the sample bytes held.
v003 #3 Clearing an already-zero bext UMID is not a change, so a title save still copies the original bext bytes. A non-zero UMID cleared to null is not written back.
decriptor added a commit that referenced this pull request Nov 16, 2026
When ID3v1 is present and LYRICS200 sits immediately before it, the
LYRICSBEGIN block is not audio and not the APE footer. The footer, if
any, is the 32 bytes before LYRICSBEGIN. Save writes audio, the new APE
tag, the original lyrics block, then ID3v1.

The copied save-with-ID3v1 checks for Monkey's Audio, WavPack, and
Musepack now share one helper. The trailing TAG rule and the 256 item
cap are unchanged.

v003 findings #1, #3.
decriptor added a commit that referenced this pull request Nov 16, 2026
A footer whose size fits but whose items do not parse no longer moves
AudioEnd into the audio. The footer and the over-claimed span stay, and
the new tag is written at the footer or at the lyrics/ID3 boundary.

Lyrics3 v1 is LYRICSEND immediately before TAG. LYRICSBEGIN is searched
back at most 64 KB, and that span is preserved on save.

v006 #1, #2, #3. #4: removing only the 256 item-count cap still fails
Parse_ItemCountFittingInItemBytes (about 1.2 MB). The cap stays.
decriptor added a commit that referenced this pull request Nov 16, 2026
#1 Copy original bext bytes only for the instance Read parsed.
#2 Walk chunk ckSize in long so a size near int.MaxValue does not throw.
#3 Write the RIFF form size from rendered chunk bytes, not a declared DataSize.
#4 Keep a Latin-1 bext description and a coding history with no trailing CRLF on a title-only save.
#5 AddChunk copied chunks so a second JUNK, data, or fact chunk is kept.
#6 A cleared UMID is not copied back, including when the source version at offset 346 is below 1.
#8 0xFFFFFFFF is one size calculation: a streamed-writer placeholder. RF64 is unsupported.
#9 Keep a second LIST INFO and rewrite only the INFO list this file parsed.
#10 Assigning new BextTag() or new Id3v2Tag() replaces an unparsed chunk. Null still keeps it.
decriptor added a commit that referenced this pull request Nov 16, 2026
v003 #1 Merge every LIST INFO with first-wins and write exactly one list, so an edit is not replaced by a stale second list.
v003 #2 Drop a chunk whose declared ckSize does not fit, including ckSize 0x7FFFFFF0, instead of keeping only sizes under int.MaxValue. Duration uses the sample bytes held.
v003 #3 Clearing an already-zero bext UMID is not a change, so a title save still copies the original bext bytes. A non-zero UMID cleared to null is not written back.
decriptor added a commit that referenced this pull request Nov 16, 2026
v005 #1 Keep a RIFF chunk whose ckSize runs past the buffer. Duration and save use the bytes present, and a size past int.MaxValue still does not throw.
v005 #2 Document that every LIST INFO is merged, the first list wins, and save writes exactly one INFO list.
v005 #4 Drop the redundant next > int.MaxValue check. next >= limit already covers it because limit is an int.
decriptor added a commit that referenced this pull request Nov 16, 2026
RiffChunk.TotalSize and AiffChunk.TotalSize are longs, so a data size
within 9 of int.MaxValue does not go negative. AiffFile adds that length
as a file offset and a render size.

v006 #1. #2: save writes the merged INFO list at the end, not in its
original position. #4: the INFO field-size check above int.MaxValue is
redundant with the buffer length. A huge field still does not throw.
decriptor added a commit that referenced this pull request Nov 16, 2026
v003 #1: a picture that base64-expands the Vorbis comment past 0xFFFFFF
bytes was written with a wrapped block length and SaveToFile reported
success. Render now returns empty, so the original file is left unchanged.
Preserved blocks use the same check.

v003 #7: the metadata read cap is 4 + 0xFFFFFF, so a legal maximum block
is accepted and a larger packet is not.

v003 #2: Vorbis comment and FLAC picture round trips cover packets of
65025 and 130050 bytes. Those sizes need a 0 lacing value on the next page.

v003 #3: a packet walk that fails after a comment was reassembled keeps
that comment. A failure before any complete comment still reads with none.
An illegal shared metadata and audio page is not treated as a successful parse.
decriptor added a commit that referenced this pull request Nov 16, 2026
v004 #1: a 70 KB setup packet spans pages. The round trip throws if
OggVorbisFile writes that packet with BuildOggPage, which rejects
more than 255 segments.

v004 #6: SaveToFile already fails an empty Ogg FLAC render with
"Failed to render Ogg FLAC file" when a block exceeds 0xFFFFFF.
The message is not empty, so the failure text is unchanged.
decriptor added a commit that referenced this pull request Nov 16, 2026
v003 #1: the 70 KB setup round trip reads the saved Ogg pages and
requires sequence numbers 0, 1, 2, ... with no gaps. Render already
assigns them that way, so granule position and lacing are unchanged.

v003 #6: the unfinished comment-page assertion names the comment.
SaveToFileAsync fails the same over-24-bit comment and leaves the file
unchanged.
decriptor added a commit that referenced this pull request Nov 16, 2026
v006 #1: FLAC metadata uses its own 10,000 page budget. Hitting that
budget before the audio page fails the walk, so Render does not replace
the file. The per-packet size cap is unchanged.

v006 #2: A 16 MiB Vorbis comment needs (MaxPacketSize / MaxBytesPerPage)
full pages plus the terminating page, and the setup page after it. The
shared cap was one page short and dropped that setup header.

v006 #3: Pin the checks that reject an audio packet which does not start
a fresh page.

v006 #5: The FLAC round-trip tests already had a single Concat helper.
decriptor added a commit that referenced this pull request Nov 16, 2026
v003 #1: omit a udta that survived in the unread moov tail.
v003 #5: cover a box kept after a bad child inside trak.
v003 #6: patch stco/co64 whenever moov changes size.
v003 #7: leave offsets put when a dref entry is not self-contained.
v003 #8: step over an illegal box by its declared size when it fits.
v003 #9: place the rebuilt udta after mvhd when the first moov child is bad.
decriptor added a commit that referenced this pull request Nov 16, 2026
…mples

v003 #1: do not skip a trak when any dref entry is external; follow each stsd data_reference_index.
v003 #5: a dref entry shorter than its header plus flags is unknown, not external.
decriptor added a commit that referenced this pull request Nov 16, 2026
v003 #1: a trak that mixes self-contained and external sample entries is patched as a whole, so every chunk offset moves. Per-chunk stsc patching is not done.
v003 #2: a missing, empty, or index-less stsd leaves offsets unchanged when any dref entry is external. No dref is still self-contained.
v003 #3: dref order [external, self-contained] follows the sample index, and a truncated stsd or dref does not read the next box as an index or as flags.
decriptor added a commit that referenced this pull request Nov 16, 2026
v003 #1: stsc maps each chunk to a sample description, and that entry's data_reference_index selects the dref. An external entry's stco and co64 offsets stay. A self-contained chunk at or after the old moov end moves by the delta. With no stsc, an external-only trak is still left unchanged.
decriptor added a commit that referenced this pull request Nov 16, 2026
v003 #1: a trak with no external dref patches every chunk offset at or after the old moov end in one pass. When a dref entry is external, ordered stsc rows are resolved by binary search on first_chunk.
v003 #2: an stsc row whose sample description does not resolve does not move an external-only trak.
v003 #3: a sample entry that cannot be read does not move offsets when any dref entry is external.
v003 #4: a chunk before the first stsc row, and a sample description index of 0, stay on an external-only trak and move otherwise. The mixed co64 case was already covered.
decriptor added a commit that referenced this pull request Nov 16, 2026
v003 #2: Codec reports MPEG-1, MPEG-2, or MPEG-2.5 with the layer. An MPEG-2 Layer II header contains MPEG-2 and Layer II, and MPEG-1 Layer III still says MPEG-1.
v003 #3: Remove the unread Layer I paddingSize store. The frame size formula is unchanged.
v003 #4: CreateMpeg2Mp3 pads from the 72-byte Layer III coefficient, 64 kbps, and the sample rate. MPEG-1 fixtures that are 417 bytes are unchanged.

Finding #1 (next-frame sync scan) is left for a follow-up. MPEG-2/2.5 Layer III stays 72, Layer II stays 144, and MPEG-1 Layer III stays 144.
decriptor added a commit that referenced this pull request Nov 16, 2026
v004 #1: Layer III reports "MP3" for MPEG-1, MPEG-2, and MPEG-2.5. Layer I and Layer II still include the MPEG version.
v004 #2: Exact codec strings are pinned for each version and layer.

The 72/144 frame-size formula is unchanged. Next-frame sync scan is not implemented.
decriptor added a commit that referenced this pull request Nov 16, 2026
v005 #1: FormatLayer no longer lists Layer III. Codec already returns "MP3" for every Layer III file, so that arm never ran. Layer I and Layer II strings are unchanged.
v005 #2: CreateMp3Layer1 and CreateMp3Layer2 have no callers.

Frame size is unchanged.
decriptor added a commit that referenced this pull request Nov 16, 2026
Temp names are a short prefix, guid, and suffix so a 230-character
destination still saves. The temp file is flushed to disk before
replace. If replace fails after the destination is gone, move the temp
back and keep it, with its path, when that move fails.

v003 findings: #1, #2, #3, #4, #5, #7
decriptor added a commit that referenced this pull request Nov 16, 2026
WriteAndFlush and WriteAndFlushAsync own the disk flush, and both
WriteAllBytes paths call them. A failed save moves the temp back only
when the destination existed before the replace and is missing
afterward; otherwise the temp is deleted. Flush-to-disk syncs on every
save. Move's contract is a same-volume replace.

v003 findings: #1, #2, #3, #4, #8
decriptor added a commit that referenced this pull request Nov 16, 2026
v003 #1: Sweep only .taglib_ plus 32 hex digits plus .tmp. Never delete a
legacy temp when its destination is missing. A kept temp is renamed to
<dest>.taglib-recovered and that path is reported.

v003 #2: Sweep a directory at most once per hour, using the .taglib_*.tmp
search pattern, before the write. WriteAsync does not scan again inside
the interval.

v003 #3: Create and flush a symlink temp in the resolved target directory
before replace. A second volume was not mounted; same-volume
cross-directory and same-directory targets are covered.

v003 #4 #5 #6 #8 #9 #10 #11: 23h is kept and 25h is deleted, a failed
replace restores a temp moved beside the target, the public WriteAllBytes
path flushes, an unwritable target directory leaves the link unchanged,
Unix mode code is guarded with OperatingSystem.IsWindows() == false,
owner/group/xattrs are not preserved, async write is ordered before move,
the kept-temp error includes the original message and recovered path once
each, and a sweep fault returns FileWriteResult.Failure.
decriptor added a commit that referenced this pull request Nov 16, 2026
v003 #1: Rebase DSTI entries whose absolute offset lies after bytes removed before the sound chunk.
v003 #2: Pad an odd output before a new ID3, and correct ckDataSize on the chunk that ran past EOF.
v003 #3: Strip every ID3 chunk when writing a replacement tag, then append one.
v003 #4: Chunks after a trailing ID3 are copied.
v003 #5: A 5-byte unpadded payload re-reads, and the ID3 chunk starts even.
v003 #6: The pre-audio ID3 save test re-reads the sound payload and expects one ID3 chunk.
v003 #7: Remove unused chunk offset fields, including _id3Size, and the comment that called them render state.
v003 #8: Drop the unreachable Id3Range extendsData branch.
decriptor added a commit that referenced this pull request Nov 16, 2026
v004 #1: When a new ID3 is appended, do not copy a trailing tail shorter than 12 bytes. Those bytes are not a chunk and hide the tag on re-read, including a 2048-byte zero tail whose remainder is under 12.
v004 #3: Pin that clearing a tag on a truncated sound chunk rewrites ckDataSize to the bytes present.
v004 #4: Pin that clearing a tag after an odd truncated chunk leaves an even file length.
decriptor added a commit that referenced this pull request Nov 16, 2026
v006 #1: Set FRM8 ckDataSize from the form end recorded before the trailer, so TAG and APETAGEX are not part of the form.
v006 #2: Copy a whole APE tag from the footer TagSize, including its items and a leading header when APETAGEX is present. A TagSize that does not fit keeps the 32-byte footer only.
v006 #4: Clearing a tag removes the DSDIFF ID3 chunk and leaves the trailer at EOF, outside FRM8.
v006 #5: Drop the trailer check that compared the offset with EOF minus the same remaining length.
v006 #6: A short tail under 12 bytes is not a chunk, so clear drops it instead of leaving it inside FRM8.
decriptor added a commit that referenced this pull request Nov 16, 2026
v003 #1: a v2.4 Year write keeps a TDRC timestamp that already starts with that four-digit year, and an invalid value leaves the frame. v2.3 TYER still stores four digits. TDOR/TORY use the same invalid-value rule.

v003 #2, #4, #10: a compressed frame that does not inflate is skipped instead of parsed as text. The zlib read stays inside the declared size and the 16 MiB cap, returns that buffer when the read fills it, and no longer catches OutOfMemoryException.

v003 #3, #7: COMM descriptions that start with "iTun" are not the comment.

v003 #6: year and genre numbers reject a leading sign and surrounding spaces.

v003 #8: the syncsafe reader doc comment is back on ReadSyncsafeInt32.

v003 #9: HasExtendedHeader is true only for v2.3 and v2.4. v2.2 uses that bit for compression.

Not v003 #5: a v2.4 header unsynchronisation flag is not whole-tag unsync. That contradicts id3v2.4.0-changes and the earlier fix.
decriptor added a commit that referenced this pull request Nov 16, 2026
v004 #1: CopyTo writes a validated ID3v2.4 TDRC timestamp, not only the four-digit year. A same-year copy replaces the target timestamp. CombinedTag uses that date too.

v004 #2: Expansion tests require a null title. The 16 MiB cap and the ratio each have a test that fails only when that guard is removed.

v004 #3: A compressed frame shorter than its size field is skipped, on v2.3 and v2.4.

v004 #4: Setting a v2.4 year to 2024-05-01T10:00 renders and re-reads that timestamp.

v004 #5: The inflate ratio is 1100 so a legal frame just over 1000:1 is kept. The 16 MiB cap still bounds memory.

v004 #6: An encrypted frame is not parsed as text.

v004 #7: The v2.2 compression-flag test names the deliberate leniency. The parser is unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants