Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: [netbsd-11] src/sys/nfs
Module Name: src
Committed By: martin
Date: Sun Oct 25 10:40:43 UTC 2026
Modified Files:
src/sys/nfs [netbsd-11]: nfs_vnops.c
Log Message:
Pull up following revision(s) (requested by riastradh in ticket #551):
sys/nfs/nfs_vnops.c: revision 1.328
sys/nfs/nfs_vnops.c: revision 1.329
nfs_vnops.c: Sort includes.
No functional change intended. Preparation for:
PR kern/60554: nfs: integer shift UB in pathconf(_PC_FILESIZEBITS)
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.325.4.1 -r1.325.4.2 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