[mythtv-commits] Ticket #11596: Patch for a feasible divide by zero in ClassicLogoDetector.cpp - fixes coverity 746806 and 746807

MythTV noreply at mythtv.org
Wed Jun 12 20:40:59 UTC 2013


#11596: Patch for a feasible divide by zero in ClassicLogoDetector.cpp - fixes
coverity 746806 and 746807
-------------------------------------------------+-------------------------
     Reporter:  Gary Buhrmaster                  |      Owner:  cpinkham
  <gary.buhrmaster@…>                            |     Status:  new
         Type:  Patch - Bug Fix                  |  Milestone:  unknown
     Priority:  minor                            |    Version:  Master Head
    Component:  MythTV - Mythcommflag            |   Keywords:
     Severity:  medium                           |
Ticket locked:  0                                |
-------------------------------------------------+-------------------------
 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

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/11596>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list