#1125705 vorbis-tools: Debian oggenc on an empty file segfaults

Package:
vorbis-tools
Source:
vorbis-tools
Description:
several Ogg Vorbis tools
Submitter:
Martin Guy
Date:
2026-01-16 09:33:02 UTC
Severity:
normal
#1125705#5
Date:
2026-01-16 09:32:20 UTC
From:
To:
Dear Maintainer,

$ touch foo
$ oggenc foo
ERROR: Input file "foo" is not a supported format
Segmentation fault (core dumped)
$ gdb /bin/oggenc core.*
gdb) bt
#0  0x000055b02f3de291 in ?? ()
#1  0x00007ffba1ff8ca8 in __libc_start_call_main (
    main=main@entry=0x55b02f3dcb60, argc=argc@entry=2,
    argv=argv@entry=0x7fffe0b3f968)
    at ../sysdeps/nptl/libc_start_call_main.h:58
#2  0x00007ffba1ff8d65 in __libc_start_main_impl (main=0x55b02f3dcb60, argc=2,
    argv=0x7fffe0b3f968, init=<optimized out>, fini=<optimized out>,
    rtld_fini=<optimized out>, stack_end=0x7fffe0b3f958)
    at ../csu/libc-start.c:360
#3  0x000055b02f3de9e1 in ?? ()
$

I'm getting the same on 32-bit and 64-bit x86 systems
and when dpkg-buildpackaging the Debian source and dpkg -i.
Rebuilding vorbis-tools from https://github.com/xiph/vorbis-tools
which also claims to be 1.4.3, does not exhibit this behaviour.

It's probably this
https://github.com/xiph/vorbis-tools/issues/53
fixed there with a link to the relevant merge request.