Repository navigation
v0.5.2
Fixes for pysacd-extract writing into a folder that already holds files, byte-compatibility with
sacd_extract for blank ISRC fields, hardening that followed the review of 0.5.0, and the build
chain. DSF, DSDIFF, cue, XML and -P output is unchanged for a disc with ordinary titles and ISRCs
written into an empty folder (release checks, below). FLAC files from the Linux wheels are now
encoded by libFLAC 1.5.0: the audio is the same, the bytes are not.
Release checks for 0.5.2 (docs/development.md, "To release"), on the commit before the version
bump: tools/extract_compare.py --require-sacd-extract against sacd_extract built from CI's
pinned commit, 0.5.1 against this release, on four real discs (stereo and 5.1, both DST; plain
stereo with 5.1 DST; plain stereo; plain stereo with no disc text) in all 35 modes (140 runs, 872
files): no difference between 0.5.1 and this release in any run, and -P matches sacd_extract on
all four. Of sacd_extract's 450 files, 270 are identical and 177 differ only where
docs/sacd_extract.md says they do. Three differ otherwise, in 0.5.1 exactly as in this release: the
multichannel edit master of the disc with a 5.1 DST area (60 bytes in length and about 3,300 bytes,
from the header on), which is not explained and is tracked as #179; and two DSF files of the
no-text disc in the -z -b mode, a mode the comparison reports without failing because
sacd_extract repeats frames at some boundaries. The full suite passes on a Fedora 44 machine (358
passed, the 21 expected skips). The changes since 0.5.1 had a security review before the release;
its three points are fixed in this release.
Fixed
pysacd-extractwarns when a file already in the album folder can't be read for its tags: it is
matched by name only, and replaced if the run writes that file. docs/sacd_extract.md says how
files without tags are matched.pysacd-extracton Windows: a disc titled with a device name such asCONno longer fails the
run; its folder and files get a leading_(_CON), aspysacd convertnames them. Other
systems keepsacd_extract's names (#156).pysacd-extractno longer writes one track over another when theirsacd_extractnames would be
the same file: titles that differ only in case on a case-insensitive filesystem (Windows, macOS
by default), or equal titles of tracks past 99. The later track is written as<name> (2)
(#156). See the differences from sacd_extract. The
filesystem is asked once per name, so a disc with many such titles doesn't slow the run.pysacd-extractwrites into an album folder that holds this disc's own files from an earlier run in
another mode, assacd_extractdoes. An edit master (-e) or cue sheet (-C) run after the DSF or
DSDIFF tracks, tracks after an edit master, a second-e, another-tselection or a-k
concatenation went to<album> [<catalogue no.>]instead, as if the folder held another disc.
Another disc's files still keep a disc out of the folder (#165).pysacd-extractkeeps two editions of an album apart when one has ISRCs and the other doesn't
but their titles and numbering are the same. Withsacd_extract's naming, the second replaced
the first's files, with only a warning that their sizes differed. An ISRC on one side only now
counts as a difference wherever the file would carry the track's ISRC:sacd_extract's ID3
modes 1, 3 and 4 (the default) and pysacd's own tags. The minimal ID3 modes (2 and 5) carry no
ISRC, so their files are compared without it (#171;
the rule).pysacd-extractwrites a track's ISRC field assacd_extractdoes when the disc leaves it blank
or fills it only in part: as stored up to its first NUL, spaces kept. A field of spaces was
written as an empty TSRC frame, left out of the cue sheet, XML and-P, and padded ones were
trimmed, so the DSF, DSDIFF, edit master, cue, XML and-Poutput differed from
sacd_extract's.pysacd convertand pysacd's own tags still carry the ISRC itself, and a
blank ISRC still counts as none when telling discs apart (#175). In-P, control characters in
the field are shown as escapes, and a disc with such a field is still recognised as itself on a
second run.
Security hardening
- Cover downloads follow redirects only to
coverartarchive.organdarchive.orghosts. A
redirect anywhere else is refused and reported as a cover-art warning; the run continues
without a cover (#155). The redirect must name its host plainly (no user part, escapes or other
port), and a redirect that can't be parsed is reported as an error instead of ending the run
with a traceback (#172). - Reading a MusicBrainz or cover response stops with an error on anything that isn't bytes.
The test suite can run under a memory limit (PYSACD_TEST_MEMORY_MB), and CI'stestsjob does.
Tests
- The engine's fuzz harness also covers ranges that don't start at frame 0 in every format, DSF
chains with a head frame, the ISO copy, cancellation, 176.4 kHz PCM, FLAC output, other thread
counts andallow_filler: an input can carry a run configuration before the image, and the seed
corpus has a configured run for each. CI replays the seeds under TSan as well as ASan and UBSan
(#157).
Build and release
- The macOS wheels' support is stated as it was tested: built for macOS 11 (arm64) and 10.13
(x86-64), run on macOS 15 on both; older versions are untested (#142). - The release-tag check runs in a Fedora container like the other release jobs, and on pull
requests it also checks its clone, so its set-up is tested before a tag depends on it (#167). licenses/names the GCC runtime library (libgcc_s) that the musllinux wheel carries, with its
licence texts (#167).- The release workflow refuses a
v*tag that isn'tvplus the package version, or whose commit
isn't onmasteror arelease/*branch, before anything is built or published (#154). - The Linux wheels link libFLAC 1.5.0, built in the job from its release source with the SHA-256
checked, as the macOS wheels do, instead of bundling the build image's libFLAC and libogg (1.3.2
in the manylinux wheels, 1.4.3 in the musllinux wheel). FLAC encoding in them is now multithreaded,
as on macOS and Windows. The audio is the same; the encoder's vendor string in each FLAC file
names the new version (#153).