Opened 7 years ago
Closed 6 years ago
#12230 closed Patch - Bug Fix (Fixed)
Patch to protected against potential divide by zero. Cppcheck detected
Reported by: | Owned by: | stuartm | |
---|---|---|---|
Priority: | minor | Milestone: | 0.28 |
Component: | MythTV - Mythcommflag | Version: | Master Head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
Cppcheck detected a possible divide by zero in CommDetector2. Protect against it (nframes == 0), and the other potential divide by zero case (npasses == 1) just for completeness.
github ref: https://github.com/garybuhrmaster/mythtv/commit/f95ec0d11fe3283e852c7c3bee735b123e497184 github git-am ref: https://github.com/garybuhrmaster/mythtv/commit/f95ec0d11fe3283e852c7c3bee735b123e497184.patch
Change History (4)
Note: See
TracTickets for help on using
tickets.
Coverity reports a related divide by zero at ln 661.