Opened 10 years ago
Closed 10 years ago
#12233 closed Patch - Bug Fix (fixed)
Patch to check return values on seek - Fixes Coverity 746749 & 1073815
Reported by: | Owned by: | stuartm | |
---|---|---|---|
Priority: | minor | Milestone: | 0.28 |
Component: | MythTV - General | Version: | Master Head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
In libmythtv/ringbuffer.cpp Coverity reports two seeks with uncheck return values. While the comment says the seek(s) can never fail, static analysis suggests checking is goodness (and "impossible" failures do occur). The included patch checks the return values, and logs an error if the impossible occurs.
Fixes Coverity 746749 & 1073815
github ref: https://github.com/garybuhrmaster/mythtv/commit/5a3992d3c0ed360edcb19fc7f5c53d8f06641804 github git-am ref: https://github.com/garybuhrmaster/mythtv/commit/5a3992d3c0ed360edcb19fc7f5c53d8f06641804.patch
Change History (3)
Note: See
TracTickets for help on using
tickets.
Corrected patch to resolve static analysis detected potential issue with uninitialized value.
github ref: https://github.com/garybuhrmaster/mythtv/commit/8eb48410d9ecd93af05323a34d019e614c364a8f github git-am ref: https://github.com/garybuhrmaster/mythtv/commit/8eb48410d9ecd93af05323a34d019e614c364a8f