Opened 11 years ago
Closed 11 years ago
Last modified 11 years ago
#11586 closed Patch - Bug Fix (fixed)
Patch to check success of socket creation in iptvstreamhandler.cpp - fixes coverity 746816
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | minor | Milestone: | 0.27 |
Component: | MythTV - General | Version: | Master Head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
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
Change History (2)
Note: See
TracTickets for help on using
tickets.
In fa1a1780e02c594bf795a9ad2eadd965afd7fecd/mythtv: