[all-commits] [llvm/llvm-project] 52ac71: [clang][analyzer] Improve StdCLibraryFunctions soc...
Balázs Kéri via All-commits
all-commits at lists.llvm.org
Mon Aug 7 01:45:52 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 52ac71f92d38f75df5cb88e9c090ac5fd5a71548
https://github.com/llvm/llvm-project/commit/52ac71f92d38f75df5cb88e9c090ac5fd5a71548
Author: Balázs Kéri <balazs.keri at ericsson.com>
Date: 2023-08-07 (Mon, 07 Aug 2023)
Changed paths:
M clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
M clang/test/Analysis/std-c-library-functions-POSIX.c
Log Message:
-----------
[clang][analyzer] Improve StdCLibraryFunctions socket send/recv functions.
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.)
Reviewed By: donat.nagy
Differential Revision: https://reviews.llvm.org/D155715
More information about the All-commits
mailing list