Skip to content

Add FIX_963_USAN_ERROR to address division by zero

Reason why this change is needed

  • Undefined behavior due to potential division-by-zero.

Description of the change

  • A check is performed on the denominator, and the division is avoided in case it is zero. Since the division is within a min() statement, the other argument will be selected since the value divided by zero will approach infinity as the denominator approaches zero.

Affected operating points

  • Should be BE.

Related to #963 (closed)

Merge request reports

Loading