Opened 11 years ago
Closed 11 years ago
Last modified 11 years ago
#11596 closed Patch - Bug Fix (fixed)
Patch for a feasible divide by zero in ClassicLogoDetector.cpp - fixes coverity 746806 and 746807
Reported by: | Owned by: | cpinkham | |
---|---|---|---|
Priority: | minor | Milestone: | 0.27 |
Component: | MythTV - Mythcommflag | Version: | Master Head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
Static analysis (coverity) detected a feasible (although not likely) code path such that the variables testEdges and testNotEdges could be zero, which would result in a divide by zero. Add in a check for the zero case.
Fixes coverity 746806 and 746807
github link:
https://github.com/garybuhrmaster/mythtv/commit/ddfad1f933a64f52f91aac72b741874edd1b5455
or, for the git-am format:
https://github.com/garybuhrmaster/mythtv/commit/ddfad1f933a64f52f91aac72b741874edd1b5455.patch
Change History (2)
Note: See
TracTickets for help on using
tickets.
In e63d70bc478fee4d79a0f5387e857078ff8ff067/mythtv: