This is an archive of the discontinued LLVM Phabricator instance.

[clang][analyzer] Improve StdCLibraryFunctions socket send/recv functions.
ClosedPublic

Authored by balazske on Jul 19 2023, 8:24 AM.

Details

Summary

The modeling of send, recv, sendmsg, recvmsg, sendto, recvfrom is changed:
These functions do not return 0, except if the message length is 0.
(In sendmsg, recvmsg the length is not checkable but it is more likely
that a message with 0 length is invalid for these functions.)

Diff Detail

Event Timeline

balazske created this revision.Jul 19 2023, 8:24 AM
Herald added a reviewer: NoQ. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
balazske requested review of this revision.Jul 19 2023, 8:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 19 2023, 8:24 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
balazske edited the summary of this revision. (Show Details)Jul 19 2023, 8:29 AM
balazske added a reviewer: donat.nagy.
donat.nagy accepted this revision.Aug 2 2023, 2:48 AM

LGTM, I don't have anything significant to add.

This revision is now accepted and ready to land.Aug 2 2023, 2:48 AM