DragonFly BSD
DragonFly bugs List (threaded) for 2010-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[issue1748] bpf_validate() uses BPF_RVAL() when it should use BPF_SRC()


From: "Sascha Wildner \(via DragonFly issue tracker\)" <sinknull@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 26 Apr 2010 09:31:57 +0000

Sascha Wildner <saw@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@lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue1748>
_____________________________________________________




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