HomeFreeBSD

kern_ntptime: Fix undefined behavior of the shift operator

Description

kern_ntptime: Fix undefined behavior of the shift operator

L_LINT macro is used with negative numbers [i.e.
L_LINT(time_freq, -MAXFREQ)], it could cause undefined
behavior. It should be similar to the L_RSHIFT(v, n) macro.

MFC after: 2 weeks
Reviewed by: cy
Pull Request: https://github.com/freebsd/freebsd-src/pull/769
Signed-off-by: Dmitriy Alexandrov <d06alexandrov@gmail.com>

Details

Provenance
Dmitriy Alexandrov <d06alexandrov@users.noreply.github.com>Authored on Jun 8 2023, 9:08 AM
cyCommitted on Jun 9 2023, 9:04 PM
Parents
rG2c01176a2802: msun: Correct FreeBSD version in sincos() man page
Branches
Unknown
Tags
Unknown