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)
Feb 14 2024, 7:20 AM
Unknown Object (File)
Dec 22 2023, 10:24 PM
Unknown Object (File)
Sep 10 2023, 6:03 AM
Unknown Object (File)
Sep 1 2023, 9:16 PM
Unknown Object (File)
Sep 1 2023, 9:15 PM
Unknown Object (File)
Sep 1 2023, 8:46 PM
Unknown Object (File)
Jun 30 2023, 7:16 AM
Unknown Object (File)
Jun 30 2023, 7:15 AM
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