HomeFreeBSD

t_msgsnd: Use msgsnd()'s msgsz argument correctly to avoid overflow

Description

t_msgsnd: Use msgsnd()'s msgsz argument correctly to avoid overflow

msgsnd's msgsz argument is the size of the message following the 'long'
message type. Don't include the message type in the size of the message
when invoking msgsnd(2).

Reported by: Coverity
CID: 1368712
Sponsored by: Dell EMC Isilon

Details

Provenance
cemAuthored on
Parents
rS316178: rrenumd(8): Fix a trivial Coverity warning
Branches
Unknown
Tags
Unknown