Opened 6 months ago
Closed 6 months ago
Last modified 6 months ago
Proposed patch for ClassicCommDetector.cpp for possible division by zero - fixes coverity 746805
|Reported by:||Gary Buhrmaster <gary.buhrmaster@…>||Owned by:||cpinkham|
|Component:||MythTV - Mythcommflag||Version:||Master Head|
This (proposed) patch needs to be carefully looked at by someone with commercial detection expertise, and presumably access to a good set of sample content so that any changes can be evaluated.
There is a feasible (although I believe very unlikely) code path where no pixels will be checked, resulting in a number of variables not being appropriately set, which could result in a divide by zero (and a some other questionable calculations). This code will bypass the code block if no pixels were checked.
Fixes coverity 746805 (possible division by zero)