[mythtv] Ticket #12233: Patch to check return values on seek - Fixes Coverity 746749 & 1073815

Gary Buhrmaster gary.buhrmaster at gmail.com
Fri Aug 8 22:58:26 UTC 2014


On Fri, Aug 8, 2014 at 4:05 PM,  <noreply at mythtv.org> wrote:
> #12233: Patch to check return values on seek - Fixes Coverity 746749 & 1073815

....

Looks like you merged the first version of the patch which
did not have the "= 0" after the definition of the cur_pos variable
(that I included in the 2nd version).

Due to the possibility of fd2 being less than zero, the
call to lseek64 might not occur, and static analysis
would indicate that cur_pos may be uninitialized when
checked.

Sorry.


More information about the mythtv-dev mailing list