[mythtv-commits] Ticket #5117: Missed check of file desc from open() call in FIFOWriter::FIFOWriteThread()

MythTV mythtv at cvs.mythtv.org
Thu Apr 3 00:12:33 UTC 2008


#5117: Missed check of file desc from open() call in FIFOWriter::FIFOWriteThread()
---------------------------------------------+------------------------------
 Reporter:  Erik Hovland <erik at hovland.org>  |       Owner:  ijr    
     Type:  defect                           |      Status:  new    
 Priority:  minor                            |   Milestone:  unknown
Component:  mythtv                           |     Version:  head   
 Severity:  low                              |     Mlocked:  0      
---------------------------------------------+------------------------------
 open() can fail. If it does then a negative file descriptor will be given.
 In FIFOWriter::FIFOWriteThread() there is a check to see if the fd is -1.
 If it is, call open. It does not check the fd after that open call. Then
 it gives the fd to write(). This could cause bad problems if that fd is
 still -1.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/5117>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list