Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/nfs



Module Name:    src
Committed By:   riastradh
Date:           Sat Aug  8 00:09:25 UTC 2026

Modified Files:
        src/sys/nfs: nfs_vnops.c

Log Message:
nfs: Avoid UB in integer shift amounts.

Just use ilog2 explicitly here, instead of writing out a loop with
shifts and increments to compute it more slowly and buggily.  Note
the confusing fencepost adjustment.  Clamp _PC_FILESIZEBITS at the
actual size of off_t since we can't go beyond that.

PR kern/60554: nfs: integer shift UB in pathconf(_PC_FILESIZEBITS)


To generate a diff of this commit:
cvs rdiff -u -r1.328 -r1.329 src/sys/nfs/nfs_vnops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index