[mythtv-commits] Ticket #11586: Patch to check success of socket creation in iptvstreamhandler.cpp - fixes coverity 746816

MythTV noreply at mythtv.org
Mon Jun 10 17:46:17 UTC 2013


#11586: Patch to check success of socket creation in iptvstreamhandler.cpp - fixes
coverity 746816
-------------------------------------------------+-------------------------
 Reporter:  Gary Buhrmaster <gary.buhrmaster@…>  |           Type:  Patch -
   Status:  new                                  |  Bug Fix
Milestone:  unknown                              |       Priority:  minor
  Version:  Master Head                          |      Component:  MythTV
 Keywords:                                       |  - General
                                                 |       Severity:  medium
                                                 |  Ticket locked:  0
-------------------------------------------------+-------------------------
 While unlikely, the socket creation could fail, returning an error rather
 than a file descriptor.  Log it, and continue.

 Note that coverity reported "Improper use of negative value" later in the
 code where calling setsockopt with the fd could be calling with a negative
 value.  This patch checks at socket creation time.

 Fixes coverity 746816

 Patch:
 https://github.com/garybuhrmaster/mythtv/commit/db44509884e10110b81332f53d7c9e56af7b2f61.patch

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/11586>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list