Page MenuHomeFreeBSD

newbus: use ssize_t to match sb's len and size, fix ordering of space check
ClosedPublic

Authored by imp on Oct 12 2020, 4:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Feb 8, 3:59 AM
Unknown Object (File)
Jan 10 2025, 9:39 PM
Unknown Object (File)
Dec 14 2024, 4:55 PM
Unknown Object (File)
Dec 5 2024, 10:25 PM
Unknown Object (File)
Dec 5 2024, 10:25 PM
Unknown Object (File)
Nov 5 2024, 7:32 PM
Unknown Object (File)
Oct 2 2024, 5:18 AM
Unknown Object (File)
Sep 17 2024, 3:38 PM
Subscribers
None

Details

Reviewers
cem
jhb
Summary

Both s_len and s_size are ssize_t, so their differece is also more
properly a ssize_t not a size_t. Also, assert that len is <= size when
we enter. This should always be the case. Ensure that we have that one
byte that we write to the end of the buffer before we do so, though
the error should already be set on the buffer if not, and the only
times we supply 'partial' buffers they should be plenty large.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 34116
Build 31284: arc lint + arc unit