Skip to content
Snippets Groups Projects
Commit 82adfb61 authored by Timothy B. Terriberry's avatar Timothy B. Terriberry
Browse files

Fix intermediate overflow in op_pcm_total().

Although link enumeration ensures the return value is in range, the
 order of operations allows the intermediate value pcm_total+diff
 to overflow the range of a 64-bit int.
Add parentheses to ensure this does not happen.
Thanks to Felcia Lim for the report.

Fixes #2330
parent 4174c26e
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment