HomeFreeBSD

libpfct: ensure the initial allocation is large enough

Description

libpfct: ensure the initial allocation is large enough

Ensure that we allocate enough memory for the packed nvlist, no matter
what size hint was provided.

MFC after: 1 week
Reported by: R. Christian McDonald <rcm@rcm.sh>
Sponsored by: Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 6422599e74db4bb8b47cead46760d96601d8396a)

Details

Provenance
kpAuthored on Jul 26 2023, 8:30 AM
Parents
rG234ef73f5a33: frag6: Avoid a possible integer overflow in fragment handling
Branches
Unknown
Tags
Unknown