oxidecomputer / p4

A P4 compiler
Mozilla Public License 2.0
111 stars 5 forks source link

Fix buffer resize bug #16

Closed internet-diglett closed 1 year ago

internet-diglett commented 1 year ago

We were accidentally truncating the Vec values returned by Key#to_bytes(). This patch should make sure that we are resizing according to each individual key before joining them together into a single Vec.