[all-commits] [llvm/llvm-project] 258c9b: [clang][analyzer] Handle special value AT_FDCWD in...
Balázs Kéri via All-commits
all-commits at lists.llvm.org
Tue May 16 00:29:11 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 258c9bebbdfa793493b71db555f5deb5ade499b4
https://github.com/llvm/llvm-project/commit/258c9bebbdfa793493b71db555f5deb5ade499b4
Author: Balázs Kéri <1.int32 at gmail.com>
Date: 2023-05-16 (Tue, 16 May 2023)
Changed paths:
M clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
M clang/test/Analysis/std-c-library-functions-arg-constraints.c
Log Message:
-----------
[clang][analyzer] Handle special value AT_FDCWD in affected standard functions
Some file and directory related functions have an integer file descriptor argument
that can be a valid file descriptor or a special value AT_FDCWD. This value is
relatively often used in open source projects and is usually defined as a negative
number, and the checker reports false warnings (a valid file descriptor is not
negative) if this fix is not included.
Reviewed By: steakhal
Differential Revision: https://reviews.llvm.org/D149160
More information about the All-commits
mailing list