Opened 7 years ago

Closed 7 years ago

#12236 closed Patch - Bug Fix (fixed)

Patch to protect against potential divide by zero in audiooutputbase.cpp

Reported by: Gary Buhrmaster <gary.buhrmaster@…> Owned by: stuartm
Priority: minor Milestone: 0.28
Component: MythTV - General Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no


Static analysis (scan-build) reported a potential divide by zero in audiooutputbase.cpp. Protect against the possibility using the same construct used 16 lines earlier in the code to protect against the same divide by zero possibility.

github ref: github git-am ref:

Change History (2)

comment:1 Changed 7 years ago by stuartm

Milestone: unknown0.28
Owner: set to stuartm
Status: newaccepted

comment:2 Changed 7 years ago by Gary Buhrmaster <gary.buhrmaster@…>

Resolution: fixed
Status: acceptedclosed

In afadf3ce4c0a7dfd9570ee26a15a75c6927e86a8/mythtv:

Protect against potential divide by zero detected by static analysis

Fixes #12236

Signed-off-by: Stuart Morgan <smorgan@…>

Note: See TracTickets for help on using tickets.