From: Jun-ichiro itojun Hagino <[EMAIL PROTECTED]>
> also, in the kernel bpf_filter.c code, A and X registers are unsigned
> but mem[] are signed.
yes.
but it can be changed to unsigned safely, i think.
because all usage of mem[] seems to involve implicit
conversion to or from unsigned.
(i don't know about other implementations than NetBSD, though)
% grep mem bpf_filter.c
int32_t mem[BPF_MEMWORDS];
A = mem[pc->k];
X = mem[pc->k];
mem[pc->k] = A;
mem[pc->k] = X;
* Check that memory operations use valid addresses.
---
YAMAMOTO Takashi<[EMAIL PROTECTED]>
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe