[issue1748] bpf_validate() uses BPF_RVAL() when it should use BPF_SRC()
Sascha Wildner (via DragonFly issue tracker)
sinknull at leaf.dragonflybsd.org
Mon Apr 26 02:33:09 PDT 2010
Sascha Wildner <saw at online.de> added the comment:
OpenBSD has changed this to BPF_SRC() based on a report by Guy. NetBSD still
uses BPF_RVAL (couldn't find a PR either), while FreeBSD uses this:
/*
* Check for constant division by 0.
*/
if (p->code == (BPF_ALU|BPF_DIV|BPF_K) && p->k == 0)
return (0);
----------
assignedto: -> swildner
nosy: +swildner
status: unread -> chatting
_____________________________________________________
DragonFly issue tracker <bugs at lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue1748>
_____________________________________________________
More information about the Bugs
mailing list