+++ This bug was initially created as a clone of Bug #1185558 +++
Description of problem:
When encoding raw pcm data from a pipe, oggenc crashes when it reaches the end of the input data.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
$ ulimit -c unlimited
$ dd if=/dev/zero bs=1024 count=100000 status=none | oggenc -r -o test.ogg -
Encoding standard input to
at quality 3.00
Encoding [ 0m04s so far] \
Done encoding file "test.ogg"
File length: 9m 40.0s
Elapsed time: 0m 04.4s
Average bitrate: 0.7 kb/s
Segmentation fault (core dumped)
The above test command is only meant to demonstrate the problem. In reality, the data to encode is produced by the sox command like this:
/usr/bin/sox -t ul -b 8 -r 8000 -c 1 track01.raw -b 16 -t wav - | /usr/bin/oggenc -Q -R 8000 -B 16 -C 1 - -o track01.ogg
The same bug seems to be fixed in F27 with vorbis-tools-1.4.0-26.fc27.x86_64.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.