XIO

xWire

Posts from every feed QUEST has found across the web — blogs, news, podcasts, channels and more.

Xiph.Org activity

Shubham Chakraborty opened issue #2340: Fix C23 build on non-glibc libc (musl) and use system getopt_long when available. at Xiph.Org / Vorbis tools

`share/getopt.c` and `share/getopt1.c` currently only define `ELIDE_CODE` when `__GLIBC__ >= 2`, and `include/getopt.h` shadows system `` via `-I$(top_srcdir)/include`. On non-glibc C libraries that still provide `getopt_long()` (such as musl), `ELIDE_CODE` and `__GNU_LIBRARY__` remain unset. As a result, `vorbis-tools` compiles its bundled legacy `getopt` implementation (`extern char *getenv ();` plus K&R function definitions) and `include/getopt.h` declares unprototyped `extern int getopt…

theali3n opened issue #2539: 2.5.0: <yp-directory> listen-socket option lost after config reload (dangling pointer), YP listenurl falls back to http at Xiph....

With a virtual listen socket referenced from , YP listings correctly advertise https://host:4000/mount after a start. After any config reload (SIGHUP or /admin/reloadconfig), the next YP add logs Failure to find listen socket with ID "server", using default (garbage ID) and advertises http instead. The cause is in yp_recheck_config() in src/yp.c: server->listen_socket_id = yp->listen_socket_id; stores a pointer into the config, which is freed on reload. The fix is to strdup it, update it for…

Benson Muite opened issue #2407: Opus fails to build on mingw with sse intrinsics at Xiph.Org / Opus

silk/x86/NSQ_sse4_1.c: In function 'silk_NSQ_sse4_1': silk/x86/NSQ_sse4_1.c:255:13: error: implicit declaration of function 'silk_noise_shape_quantizer'; did you mean 'silk_noise_shape_quantizer_10_16_sse4_1'? [-Wimplicit-function-declaration] 255 | silk_noise_shape_quantizer( NSQ, psIndices->signalType, x_sc_Q10, pulses, pxq, sLTP_Q15, A_Q12, B_Q14, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | silk_noise_shape_quantizer_10_16_sse4_1 silk/x86/NSQ_sse4_1.c:255:13: warning: nested extern declaration of…

Benson Muite opened issue #2406: Build fails on mingw due to non matching function declaration at Xiph.Org / Opus

``` celt/celt_encoder.c:154:26: error: static declaration of 'opus_custom_encoder_get_size' follows non-static declaration 154 | OPUS_CUSTOM_NOSTATIC int opus_custom_encoder_get_size(const CELTMode *mode, int channels) | ^\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~ In file included from celt/celt.h:40, from celt/celt_encoder.c:40: ./include/opus_custom.h:139:55: note: previous declaration of 'opus_custom_encoder_get_size' with type 'int(const OpusCustomMode *, int)' 139 |…

Timothy B. Terriberry closed merge request !211: Ignore duplicate short extensions. at Xiph.Org / Opus

We also still convert extension repacketization to be iterator-based, as it avoids the need to guard against stack overflow, which is still possible even with 1-byte extensions (a 20 kB input packet can still produce 21,424 extensions, which requires 334 kB of extension descriptors, which is larger than the pseudostack).

Timothy B. Terriberry opened merge request !212: Ignore duplicate short extensions. at Xiph.Org / Opus

We also still convert extension repacketization to be iterator-based, as it avoids the need to guard against stack overflow, which is still possible even with 1-byte extensions (a 20 kB input packet can still produce 21,424 extensions, which requires 334 kB of extension descriptors, which is larger than the pseudostack). Addresses feedback from previous version: Uses stack allocations for the iterators in the repacketizer, removes support for generating extensions for 0 frames (to avoid…

Tristan Matthews accepted merge request !71: jitter: fix packet ownership with a destroy callback at Xiph.Org / SpeexDSP

Restores the 1.2.1 behaviour that 9db8590b changed, and fixes a real leak in the same area. Regression fix: jitter_buffer_get() and jitter_buffer_get_another() empty the slot again when a destroy callback is set. Since 9db8590b, get_another() returned the just-returned packet on every call, and callers that free the data they receive (as 1.2.1 required) freed it twice. Leak fix: jitter_buffer_put() now calls the destroy callback on a packet that is too late to insert. Previously it was neither…

Tristan Matthews commented on merge request !71 at Xiph.Org / SpeexDSP

Yes. A custom deleter is still called for every packet the buffer drops or still holds at reset/destroy, and now also for packets that are too late to be inserted, which used to leak prior to this MR. What changed relative to your commit is that packets returned by jitter_buffer_get()/get_another() are owned by the caller again, as in 1.2.1, so the buffer doesn't call the deleter on those (this is now documented in speex_jitter.h). That is what e.g. Mumble's AudioOutputSpeech.cpp already does.…

Jasper Cheng opened issue #2368: vorbis_synthesis_blockin(): signed overflow on granule positions near the int64 limits at Xiph.Org / Vorbis

vorbis_synthesis_blockin() updates the decoder's position from the packet's granulepos, which comes straight from the Ogg page header, with signed 64-bit arithmetic and no range check: v->granulepos+=ci->blocksizes[v->lW]/4+ci->blocksizes[v->W]/4; /* block.c:907 */ ... long extra=v->granulepos-vb->granulepos; /* block.c:911 */ A granule position near INT64_MAX (followed by packets with -1) overflows the addition, and a very negative one overflows the subtraction. Both are undefined behavior; a…

Jasper Cheng opened issue #2367: ov_open()/ov_fopen() call _fseek64_wrap through an incompatible function type (UBSan -fsanitize=function) at Xiph.Org / Vorbis

ov_open() fills ov_callbacks with static int _fseek64_wrap(FILE *f,ogg_int64_t off,int whence){ ... } ... ov_callbacks callbacks = { (size_t (*)(void *, size_t, size_t, void *)) fread, (int (*)(void *, ogg_int64_t, int)) _fseek64_wrap, ... and the library then calls seek_func as int (*)(void *, ogg_int64_t, int). Calling a function through a pointer to an incompatible function type is undefined behavior in C. clang's -fsanitize=function (part of -fsanitize=undefined in current clang) reports it…

Jasper Cheng commented on merge request !52 at Xiph.Org / Vorbis

A note on the third item, in case it helps: the negative count comes from vorbis_synthesis_lapout() itself, not only from the state a failed seek leaves behind. The step that makes the buffer contiguous (the (v->lW^v->W)==1 / short-short branches) moves the data by an amount that depends only on the block sizes. When a single block has been decoded, vorbis_synthesis_blockin() already leaves the data ending at n1, so it is moved again, pcm_returned goes past n1+n, and the result is negative. A…

Jasper Cheng opened issue #2366: vorbisfile: three seeking problems in chained files (single-page link skipped, ov_pcm_seek past the end, ov_raw_seek across ...

Three problems in vorbisfile.c with chained files, all in the seek paths. Tested on main (1b75110b); the attached reproducer (see README.md in it) builds small chained files in memory from five short streams and opens them with ov_open_callbacks() (seekable). 1. A link whose audio is a single page is skipped. ov_raw_seek() sets firstflag only when ready_state is below STREAMSET (when it meets the first page of the link). If the link's only audio page also has eos, that page is treated as "last…