Skip to content
  • Timothy B. Terriberry's avatar
    Fix intermediate overflow in op_pcm_total(). · 82adfb61
    Timothy B. Terriberry authored
    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
    82adfb61