Page MenuHomeFreeBSD

pipe: keep uio_iovcnt consistent
ClosedPublic

Authored by emaste on Jul 17 2024, 5:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Feb 13, 12:17 PM
Unknown Object (File)
Thu, Feb 13, 8:16 AM
Unknown Object (File)
Wed, Feb 12, 2:26 PM
Unknown Object (File)
Thu, Feb 6, 4:39 PM
Unknown Object (File)
Wed, Feb 5, 3:12 AM
Unknown Object (File)
Sun, Jan 26, 8:58 PM
Unknown Object (File)
Fri, Jan 17, 2:29 PM
Unknown Object (File)
Jan 15 2025, 8:49 PM

Details

Summary

In pipe_build_write_buffer we increment uio_iov but did not update uio_iovcnt. This would not cause an OOB read (thanks to to uio_resid) but is inconsistent and could be an issue if other code changes are made in the future.

Reported by: Synactiv

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable