[mythtv-commits] Ticket #11554: Patch for unchecked return value in lirc.cpp (coverity defect)

MythTV noreply at mythtv.org
Thu Jun 6 22:40:45 UTC 2013


#11554: Patch for unchecked return value in lirc.cpp (coverity defect)
-------------------------------------------------+-------------------------
 Reporter:  Gary Buhrmaster <gary.buhrmaster@…>  |          Owner:  stuartm
     Type:  Patch - Bug Fix                      |         Status:  closed
 Priority:  minor                                |      Milestone:
Component:  MythTV - User Interface Library      |        Version:  Master
 Severity:  medium                               |  Head
 Keywords:                                       |     Resolution:  Fixed
                                                 |  Ticket locked:  0
-------------------------------------------------+-------------------------
Changes (by stuartm):

 * status:  new => closed
 * resolution:   => Fixed


Comment:

 In [changeset:b578a5e6444ee5d04c00387d233ab79ddba691a3/mythtv]:
  {{{
  #!CommitTicketReference repository="mythtv"
  revision="b578a5e6444ee5d04c00387d233ab79ddba691a3"
  Check the return code from setsockopt (in lirc.cpp)

  Static analysis (coverity) identified that the return code
  from setsockopt was not checked.  This patch checks the
  return code, with a log message if the setting fails.
  (cherry picked from commit 0ae45b8598110898f4779f3bdc826e1ce5abb005)

  Signed-off-by: Stuart Morgan <smorgan at mythtv.org>

  Fixes #11554
  }}}

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/11554#comment:2>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list