zig icon indicating copy to clipboard operation
zig copied to clipboard

fix integer overflow in IoUring buffer ring size calculation

Open karlbohlmark opened this issue 1 year ago • 1 comments

entries can be up to 32768, so the result does not fit into the 16bits given by peer type resolution.

@ianic, can you take a look?

karlbohlmark avatar May 07 '24 07:05 karlbohlmark

Good point.

posix.mmap length parameter is usize so this mmap_size can also be usize

ianic avatar May 07 '24 13:05 ianic