Bug 451727

Summary: Fd leak, uninitialized memory
Product: [Fedora] Fedora Reporter: Philippe Troin <phil>
Component: libraw1394Assignee: Jarod Wilson <jarod>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 8   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 1.3.0-7.fc9 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-06-20 19:04:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch fixing the problems. none

Description Philippe Troin 2008-06-16 23:57:43 UTC
While trying to track down some crashes in kino, I found the following problems
with libraw1394:

 * There is a DIR* leak in raw1394_set_port().
 * Lots of data structures are not fully initialized when calling IEEE1394
ioctl()s.  These cause valgrind errors (benign, as valgrind does not know how to
interpret all ioctls.  However these also cause kino to crash in libraw1394. 
I've added a bunch of memset()s to prevent this problem from happening.

Phil.

Comment 1 Philippe Troin 2008-06-16 23:57:43 UTC
Created attachment 309552 [details]
Patch fixing the problems.

Comment 2 Jarod Wilson 2008-06-17 15:12:10 UTC
Phil, thanks much for the patch, I'm going to submit it upstream with
attribution to you, unless you object. Will also get it patched into the Fedora
libraw1394 builds ASAP.

Comment 3 Fedora Update System 2008-06-17 15:54:50 UTC
libraw1394-1.3.0-7.fc9 has been submitted as an update for Fedora 9

Comment 4 Fedora Update System 2008-06-17 15:55:41 UTC
libraw1394-1.3.0-7.fc8 has been submitted as an update for Fedora 8

Comment 5 Jarod Wilson 2008-06-17 19:34:03 UTC
Meh. Patch is already public in the bz, I went ahead and sent it upstream on
your behalf, as Dan Dennedy already mentioned on the kino-dev list. Definitely
an improvement, thanks again!

Comment 6 Fedora Update System 2008-06-20 19:04:25 UTC
libraw1394-1.3.0-7.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2008-06-20 19:06:32 UTC
libraw1394-1.3.0-7.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.