Bug 1569426 - oggenc crashes when encoding pcm from stdin
Summary: oggenc crashes when encoding pcm from stdin
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: vorbis-tools
Version: 7.5
Hardware: x86_64
OS: Linux
Target Milestone: rc
: ---
Assignee: Kamil Dudka
QA Contact: Desktop QE
Depends On: 1185558
Blocks: 1549689 CVE-2014-9640
TreeView+ depends on / blocked
Reported: 2018-04-19 09:23 UTC by Zdenek Pytela
Modified: 2018-10-30 08:09 UTC (History)
7 users (show)

Fixed In Version: vorbis-tools-1.4.0-13.el7
Doc Type: No Doc Update
Doc Text:
Clone Of: 1185558
Last Closed: 2018-10-30 08:09:17 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 3418301 0 None None None 2018-04-19 09:42:14 UTC
Red Hat Product Errata RHBA-2018:3075 0 None None None 2018-10-30 08:09:29 UTC

Description Zdenek Pytela 2018-04-19 09:23:57 UTC
+++ 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):


How reproducible:


Steps to Reproduce:
$ ulimit -c unlimited
$ dd if=/dev/zero bs=1024 count=100000 status=none | oggenc -r -o test.ogg -

Actual results:
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
        Rate:         131.5533
        Average bitrate: 0.7 kb/s

Segmentation fault (core dumped)

Expected results:
no segfault

Additional info:

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.

Comment 8 errata-xmlrpc 2018-10-30 08:09:17 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.