Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 160795

Summary: media-libs/smpeg-0.4.4-r8 Segfault caused by missing initialisation
Product: Gentoo Linux Reporter: Vincent Le Ligeour <gentoo>
Component: [OLD] LibraryAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 2006.1   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: smpeg-0.4.4-missing-init.patch

Description Vincent Le Ligeour 2007-01-07 22:46:09 UTC
When an non-openable file is given to SMPEG_new, it doesn't return a NULL pointer (this is normal behavior) but the status MPEG class member is not properly initialized. The SMPEG_delete on the object created will then segfault because of a NULL pointer test not initialized.
(can be test with the current ultrastar-ng cvs version)

Reproducible: Always

Steps to Reproduce:
1.Create an SMPEG object with a non-existant file with SMPEG_new
2.Try to delete it with SMPEG_delete




Patched will be attached in the next comment
Comment 1 Vincent Le Ligeour 2007-01-07 22:47:42 UTC
Created attachment 105957 [details, diff]
smpeg-0.4.4-missing-init.patch

Compile fine and patch the bug (patch has been sent to the loki team)
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2007-01-09 09:28:37 UTC
In portage.  Thanks for the bug report and patch.

It seems like a pretty obscure corner case so I didn't rev bump it.  Remerge for the patch.