Source-Changes archive

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

CVS commit: src



Module Name:    src
Committed By:   alnsn
Date:           Fri Oct 30 21:23:29 UTC 2026

Modified Files:
        src/sys/net: bpfjit.c
        src/tests/lib/libbpfjit: t_bpfjit.c
        src/tests/net/bpfjit: t_bpfjit.c

Log Message:
Reduce differences between bpf and bpfjit, round 2:

 - reject to compile jumps with invalid opcodes
 - compile A << X and A >> X with a junk value in K
 - emit 32bit lshift instructions to shift by 32 and
   more "correctly" (it's undefined behaviour)

One case remains different on purpose: bpf accepts
shifts by any constant K, bpfjit rejects compilation
of shifts by more than 31.


To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/sys/net/bpfjit.c
cvs rdiff -u -r1.16 -r1.17 src/tests/lib/libbpfjit/t_bpfjit.c
cvs rdiff -u -r1.13 -r1.14 src/tests/net/bpfjit/t_bpfjit.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