Allocate 9000 bytes to match the largest requsted size. Add a check to
prevent the list of sizes and buffer size from getting out of sync
again.
Found with: CheriBSD
Differential D43340
socket_msg_trunc: allocate a large enough buffer brooks on Jan 6 2024, 12:41 AM. Authored by Tags None Referenced Files
Subscribers
Details
Allocate 9000 bytes to match the largest requsted size. Add a check to Found with: CheriBSD
Diff Detail
Event TimelineComment Actions It'd be a bit cleaner to allocate the buffer with malloc(), but this works.
|