[mythtv-commits] Ticket #5504: Passing a null pointer to write() is a bad idea any time (in libmythdb)

MythTV mythtv at cvs.mythtv.org
Fri Jul 4 23:58:26 UTC 2008


#5504: Passing a null pointer to write() is a bad idea any time (in libmythdb)
---------------------------------------------+------------------------------
 Reporter:  Erik Hovland <erik at hovland.org>  |       Owner:  ijr    
     Type:  defect                           |      Status:  new    
 Priority:  trivial                          |   Milestone:  unknown
Component:  mythtv                           |     Version:  unknown
 Severity:  low                              |     Mlocked:  0      
---------------------------------------------+------------------------------
 The tcp/udp write calls in msocketdevice_unix.cpp can pass a null pointer
 to write() if the length of the data to write is zero. Although this is
 unlikely to be a problem, it would be better if we never passed a null
 pointer to write() ever.

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


More information about the mythtv-commits mailing list