CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2026/06/09 00:00:13

Modified files:
        lib/libutil    : fmt_scaled.c 

Log message:
Avoid signed overflow in fmt_scaled

Adding the scaled fractional part to whole may result in a signed overflow.
Guard against this by adding checks before subtracting or adding.

problem pointed out by a friend of claudio's
fix looks good to claudio, ok djm

Reply via email to