Kieran Kunhya commented on merge request !69 at Xiph.Org / SpeexDSP
If you care about x86 32-bit I guess I could get claude to write that
Posts from every feed QUEST has found across the web — blogs, news, podcasts, channels and more.
If you care about x86 32-bit I guess I could get claude to write that
x86inc.asm is the upstream copy from code.videolan.org/videolan/x86inc.asm (a9d4637b). cpuid.asm and cpu.c come from dav1d's src/x86, with the flags reduced to the levels the speexdsp kernels use: SSE2, AVX2 (which also requires FMA3 here) and AVX-512 F/CD/BW/DQ/VL, so Skylake-X/Cascade Lake qualify as well as Ice Lake and Zen 4. cpu_support.h maps them to SPX_ARCH_SSE2/AVX2/AVX512 under USE_X86ASM, so a state picks its level at init like the RVV kernels do. Co-Authored-By: Claude Opus 5.5…
Unfortunately, I don't have an example file. The issue was spotted by a code analysis. Due to security concerns, the AI models refuse to create an example file for me.
parse_weights() (dnn/parse_lpcnet_weights.c:56) returns -1 and sets *list = NULL when it encounters malformed/truncated weight data. Every one of its 9 real call sites in the library passes the resulting list straight into an init_* function, but only 6 of them check the return value first: Correctly checked (6): if (parse_weights(&list, data, len) < 0) return ...; // fargan.c:198, lossgen.c:168, // osce.c:1436, dred_encoder.c:59, // pitchdnn.c:74, lpcnet_plc.c:78 Not checked (3): //…
A setup header using such a book as a residue stage book made vorbis_book_decodevs_add() (residue type 0) compute n/book->dim, a division by zero that crashes the decoder. Do you have an example of a file with such a setup header? As I understand it, a codebook with dim == 0 must have quantvals == 0 in vorbis_decbook_unpack(), and thus there are no vector values associated with any codeword. I do not see corresponding special cases in vorbis_book_init_decode(), nor do I see anything that forces…
Jean-Marc Valin (0145a624) at 06 Nov 22:28 Only blend the SILK stereo resamplers when they run at the same rate ... and 4 more commits
projection_decode_int16_wrap.c projection_own_encoder_wrap.c
I asked Claude code to find memory leaks. I checked the finding and think the fix is the right one. fixes #2363 vorbis_decbook_unpack() accepts a codebook with dim 0 and a value mapping (maptype 1 or 2), and res0_unpack() only checked the dimension of the phrasebook, not of the stage books. A setup header using such a book as a residue stage book made vorbis_book_decodevs_add() (residue type 0) compute n/book->dim, a division by zero that crashes the decoder. Reject stage books with dim < 1…
I have a patch for a crash bug in the decoder. I am not allowed to fork the project or push to a new branch. Can you please give me these rights? Or is there another way to share the patch with you?
AI-generated, human-tweaked/reviewed
Jean-Marc Valin (144db043) at 05 Nov 16:03 Only blend the SILK stereo resamplers when they run at the same rate ... and 5 more commits
Jean-Marc Valin (1814c42a) at 05 Nov 15:47 Only blend the SILK stereo resamplers when they run at the same rate ... and 5 more commits
Jean-Marc Valin (677070ed) at 01 Nov 21:38 Reject a frame_size whose duration check would overflow
Fixes https://github.com/xiph/speex/issues/42 Reported by HaiND (Nguyen Dinh Hai), Post and Telecommunication Institute of Technology, github.com/Haind03.
Tristan Matthews (09b569d1) at 01 Nov 20:49 bits: fix OOB write in read_whole_bytes for non-owned buffers
Also found a bug where metadata updates were not going through if the server uses HTTP Basic authentication. The failure was observed with an Icecast 2.5.0 server on its TLS port. The source connected successfully and continuously streamed MP3 audio, but shout_set_metadata() returned SHOUTERR_SOCKET while attempting to update mp3 title metadata. The metadata request sequence is: libshout sends an unauthenticated GET /admin/metadata request. The server returns HTTP 401, which is the expected…
Tristan Matthews (09b569d1) at 31 Oct 14:32 bits: fix OOB write in read_whole_bytes for non-owned buffers
Fixes multiple issues with the CELT PLC. Code is AI-generated, but carefully reviewed.
Jean-Marc Valin (bafd40dc) at 29 Oct 15:04 Fix incorrect saturation in SILK stereo encoder
Jean-Marc Valin (251d657e) at 28 Oct 18:28 Unfold previous MDCT right-overlap on PLC frame ... and 8 more commits
sig+exc_length-exc_length can be just sig now.
Oh I see that it is reusing only the last pitch period of exc[] each time, so I think it is ok now.
Perhaps I'm missing something, but it appears that this will still cause the attenuation to increase faster for pitch periods at the end of the frame compared to pitch periods at the beginning of the frame. For example, suppose decay is 0.7 and there are 3 pitch periods in each frame, so fade is 1.0 for the first frame and 0.8 for subsequent frames. frame period preatten attenuation postatten 1 1 1 1.0*0.7 (0.7) 0.7 1 2 1 1.0*0.7^2 (0.49) 0.49 1 3 1 1.0*0.7^3 (0.343) 0.343 2 1 0.7 0.8*0.7…
Jean-Marc Valin (4a7a8f64) at 28 Oct 15:30 decay is independent of fade
OK, misunderstood your original issue. That change should just be reverted
Thanks for the review. See the comments above and the updated code. I pushed the fixes as separate commit, but I'll squash them on the final merge.
Jean-Marc Valin (099f3feb) at 28 Oct 14:44 Fix comment