[all-commits] [llvm/llvm-project] 9d4870: [clang][analyzer] Teach the BlockInCriticalSection...
flovent via All-commits
all-commits at lists.llvm.org
Mon Feb 17 06:36:02 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9d487050a144b895950a6fd48b993513a714e69d
https://github.com/llvm/llvm-project/commit/9d487050a144b895950a6fd48b993513a714e69d
Author: flovent <144676429+flovent at users.noreply.github.com>
Date: 2025-02-17 (Mon, 17 Feb 2025)
Changed paths:
M clang/lib/StaticAnalyzer/Checkers/BlockInCriticalSectionChecker.cpp
A clang/test/Analysis/Inputs/system-header-simulator-cxx-std-locks.h
A clang/test/Analysis/issue-124474.cpp
Log Message:
-----------
[clang][analyzer] Teach the BlockInCriticalSectionChecker about O_NONBLOCK streams (#127049)
this PR close #124474
when calling `read` and `recv` function for a non-block file descriptor
or a invalid file descriptor(`-1`), it will not cause block inside a
critical section.
this commit checks for non-block file descriptor assigned by `open`
function with `O_NONBLOCK` flag.
---------
Co-authored-by: Balazs Benics <benicsbalazs at gmail.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list