[PATCH] D61967: [clang-tidy] Add a close-on-exec check on pipe() in Android module.
Jian Cai via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 15 15:45:29 PDT 2019
jcai19 created this revision.
jcai19 added reviewers: alexfh, chh.
Herald added subscribers: cfe-commits, xazax.hun, mgorny.
Herald added a project: clang.
pipe() is better to be replaced by pipe2() with O_CLOEXEC flag to avoid file descriptor leakage.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D61967
Files:
clang-tools-extra/clang-tidy/android/AndroidTidyModule.cpp
clang-tools-extra/clang-tidy/android/CMakeLists.txt
clang-tools-extra/clang-tidy/android/CloexecPipeCheck.cpp
clang-tools-extra/clang-tidy/android/CloexecPipeCheck.h
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/android-cloexec-pipe.rst
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/test/clang-tidy/android-cloexec-pipe.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61967.199692.patch
Type: text/x-patch
Size: 6936 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190515/677e21fb/attachment-0001.bin>
More information about the cfe-commits
mailing list