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
F131914361: D26752.id78138.diff
Sun, Oct 12, 4:32 AM
Unknown Object (File)
Mon, Sep 15, 11:23 PM
Unknown Object (File)
Aug 2 2025, 7:03 AM
Unknown Object (File)
Jul 31 2025, 2:19 AM
Unknown Object (File)
Jul 30 2025, 9:23 PM
Unknown Object (File)
Jul 29 2025, 7:53 AM
Unknown Object (File)
Jul 28 2025, 10:55 PM
Unknown Object (File)
Jul 6 2025, 6:04 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