From 9eb16e10020918d725992f67b07c860d9b266478 Mon Sep 17 00:00:00 2001 From: PKEuS <731902+PKEuS@users.noreply.github.com> Date: Sun, 19 Jun 2022 12:01:55 +0200 Subject: [PATCH] Replaced check for pipe() buffer size by ordinary CheckBufferOverrun, provide required Library configuration option (#4183) Merged from LCppC. --- cfg/cppcheck-cfg.rng | 3 + cfg/gnu.cfg | 2 +- cfg/posix.cfg | 10 ++-- lib/checkbufferoverrun.cpp | 13 +++-- lib/checkother.cpp | 41 -------------- lib/checkother.h | 7 --- lib/library.cpp | 3 + lib/library.h | 1 + lib/tokenize.cpp | 13 +++++ lib/tokenize.h | 3 +- test/testbufferoverrun.cpp | 40 ++++++++++++++ test/testlibrary.cpp | 15 ++++- test/testother.cpp | 109 ------------------------------------- 13 files changed, 91 insertions(+), 169 deletions(-) diff --git a/cfg/cppcheck-cfg.rng b/cfg/cppcheck-cfg.rng index ef5a30907..b81a35335 100644 --- a/cfg/cppcheck-cfg.rng +++ b/cfg/cppcheck-cfg.rng @@ -306,6 +306,9 @@ + + + diff --git a/cfg/gnu.cfg b/cfg/gnu.cfg index 575c4c8cb..75823db77 100644 --- a/cfg/gnu.cfg +++ b/cfg/gnu.cfg @@ -414,7 +414,7 @@ - + diff --git a/cfg/posix.cfg b/cfg/posix.cfg index 6de3b6282..083cf12b7 100644 --- a/cfg/posix.cfg +++ b/cfg/posix.cfg @@ -1742,7 +1742,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s - + @@ -1762,7 +1762,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s - + @@ -1782,7 +1782,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s - + @@ -2749,7 +2749,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s - + @@ -2761,7 +2761,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s - +