Opened 10 years ago

Closed 10 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

Description

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: https://github.com/garybuhrmaster/mythtv/commit/27be2356a55dda649050e360edfbcc5641527382 github git-am ref: https://github.com/garybuhrmaster/mythtv/commit/27be2356a55dda649050e360edfbcc5641527382.patch

Change History (2)

comment:1 Changed 10 years ago by stuartm

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

comment:2 Changed 10 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.