[mythtv-commits] Ticket #11610: Patch to check fcntl success in mythsystemunix.cpp - fixes coverity 1028691

MythTV noreply at mythtv.org
Tue Dec 17 08:20:30 UTC 2013


#11610: Patch to check fcntl success in mythsystemunix.cpp - fixes coverity 1028691
-------------------------------------------------+-------------------------
 Reporter:  Gary Buhrmaster <gary.buhrmaster@…>  |          Owner:  beirdo
     Type:  Patch - Bug Fix                      |         Status:  closed
 Priority:  minor                                |      Milestone:  0.27.1
Component:  MythTV - MythSystem                  |        Version:  Master
 Severity:  medium                               |  Head
 Keywords:                                       |     Resolution:  fixed
                                                 |  Ticket locked:  0
-------------------------------------------------+-------------------------
Changes (by Gary Buhrmaster <gary.buhrmaster@…>):

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


Comment:

 In [changeset:"246c40737794963306bacfb6960008ad23eb7ebc/mythtv"]:
 {{{
 #!CommitTicketReference repository="mythtv"
 revision="246c40737794963306bacfb6960008ad23eb7ebc"
 Patch to check for fcntl success

 Static analysis (coverity) detected that the
 system call fcntl did not check its return
 value.  This patch adds in that check.

 This patch also implements a more robust setting
 of the fd flags (get the current flags, or'ing in
 the NONBLOCK value, and then setting the flags).

 Fixes coverity 1028691
 Fixes #11610
 }}}

--
Ticket URL: <http://code.mythtv.org/trac/ticket/11610#comment:3>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list