[Bug 273207] pf_syncookie_mac for IPv6 random cause panic
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 273207] pf_syncookie_mac for IPv6 random cause panic"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 19 Aug 2023 02:07:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273207
--- Comment #16 from Rin Cat <dev@rincat.ch> ---
Not sure what's happened,
SipHash_Update(&ctx, pd->src, sizeof(pd->src->v6));
pd->src (struct pf_addr *) 0xfffff8010a3cae6e
become
(const uint8_t *) 0x0
in SipHash_Update
Before
if (ctx->buflen > 0 || len < 8)
len -= SipBuf(ctx, &s, len, 0);
And you cannot copy from NULL.
bcopy(*src, &ctx->buf.b8[ctx->buflen], x);
--
You are receiving this mail because:
You are the assignee for the bug.