Bug 1569426

Summary: oggenc crashes when encoding pcm from stdin
Product: Red Hat Enterprise Linux 7 Reporter: Zdenek Pytela <zpytela>
Component: vorbis-toolsAssignee: Kamil Dudka <kdudka>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.5CC: bugreporter1, extras-qa, hdegoede, jkoten, kdudka, thomas, tpelka
Target Milestone: rcKeywords: EasyFix
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: vorbis-tools-1.4.0-13.el7 Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: 1185558 Environment:
Last Closed: 2018-10-30 08:09:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1185558    
Bug Blocks: 1185272, 1549689    

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):

vorbis-tools-1.4.0-12.el7.x86_64

How reproducible:

always

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 
         "test.ogg" 
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.

https://access.redhat.com/errata/RHBA-2018:3075