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: Gary Buhrmaster <gary.buhrmaster@…> 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)

comment:1 Changed 11 years ago by Gary Buhrmaster <gary.buhrmaster@…>

Resolution: fixed
Status: newclosed

In e63d70bc478fee4d79a0f5387e857078ff8ff067/mythtv:

[PATCH] Patch for feasible divide by zero

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

Fixes #11596.

Signed-off-by: Chris Pinkham <cpinkham@…>

comment:2 Changed 11 years ago by paulh

Milestone: unknown0.27
Note: See TracTickets for help on using tickets.