Page MenuHomeFreeBSD

libc rpc: Fix mismatches in prototypes for array bounds.
ClosedPublic

Authored by jhb on Sep 27 2022, 5:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Sep 6, 4:27 AM
Unknown Object (File)
Sun, Sep 6, 1:46 AM
Unknown Object (File)
Sun, Sep 6, 1:01 AM
Unknown Object (File)
Sun, Sep 6, 12:32 AM
Unknown Object (File)
Fri, Sep 4, 1:37 AM
Unknown Object (File)
Wed, Sep 2, 12:17 PM
Unknown Object (File)
Wed, Sep 2, 11:45 AM
Unknown Object (File)
Wed, Sep 2, 7:02 AM
Subscribers
None

Details

Summary

Various RPC functions used a bare pointer in function prototypes to
describe fixed-length buffer arguments but used a fixed-length array
in the function definition. The manual page for these functions
describes the parameters as being fixed-length buffers, so update
the prototypes to match the definitions.

Reported by: GCC -Warray-parameter

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 47572
Build 44459: arc lint + arc unit