diff --git a/lib/util/aix.c b/lib/util/aix.c index 1abc901ca..f27cc851a 100644 --- a/lib/util/aix.c +++ b/lib/util/aix.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/arc4random.c b/lib/util/arc4random.c index 11b4c5919..47d29afe6 100644 --- a/lib/util/arc4random.c +++ b/lib/util/arc4random.c @@ -19,6 +19,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + /* * ChaCha based random number generator for OpenBSD. */ diff --git a/lib/util/arc4random_uniform.c b/lib/util/arc4random_uniform.c index 9567d22e7..422d0fca0 100644 --- a/lib/util/arc4random_uniform.c +++ b/lib/util/arc4random_uniform.c @@ -16,6 +16,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #ifndef HAVE_ARC4RANDOM_UNIFORM diff --git a/lib/util/closefrom.c b/lib/util/closefrom.c index 2a23f0c15..33ce72fe1 100644 --- a/lib/util/closefrom.c +++ b/lib/util/closefrom.c @@ -15,6 +15,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #ifndef HAVE_CLOSEFROM diff --git a/lib/util/digest.c b/lib/util/digest.c index dd2141412..0cb3daae1 100644 --- a/lib/util/digest.c +++ b/lib/util/digest.c @@ -16,6 +16,9 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/digest_gcrypt.c b/lib/util/digest_gcrypt.c index c85b1f534..32f42d6ba 100644 --- a/lib/util/digest_gcrypt.c +++ b/lib/util/digest_gcrypt.c @@ -16,6 +16,9 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/digest_openssl.c b/lib/util/digest_openssl.c index d229d073b..f2570018f 100644 --- a/lib/util/digest_openssl.c +++ b/lib/util/digest_openssl.c @@ -16,6 +16,9 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/event.c b/lib/util/event.c index 7259faf31..8f92f9091 100644 --- a/lib/util/event.c +++ b/lib/util/event.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/event_poll.c b/lib/util/event_poll.c index bc9b66bf9..9f31a3207 100644 --- a/lib/util/event_poll.c +++ b/lib/util/event_poll.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/event_select.c b/lib/util/event_select.c index ed76702b1..24aab0d4d 100644 --- a/lib/util/event_select.c +++ b/lib/util/event_select.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include /* for howmany() on Linux */ diff --git a/lib/util/fatal.c b/lib/util/fatal.c index 1cceb7935..73f105726 100644 --- a/lib/util/fatal.c +++ b/lib/util/fatal.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/fnmatch.c b/lib/util/fnmatch.c index 84bc2cfc7..785e8062d 100644 --- a/lib/util/fnmatch.c +++ b/lib/util/fnmatch.c @@ -42,6 +42,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + /* Authored by William A. Rowe Jr. , April 2011 * * Derived from The Open Group Base Specifications Issue 7, IEEE Std 1003.1-2008 diff --git a/lib/util/getentropy.c b/lib/util/getentropy.c index 6859f834c..1c7470a3e 100644 --- a/lib/util/getentropy.c +++ b/lib/util/getentropy.c @@ -158,6 +158,9 @@ sudo_getentropy(void *buf, size_t len) return (ret); } +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + /* * Basic sanity checking; wish we could do better. */ diff --git a/lib/util/getgrouplist.c b/lib/util/getgrouplist.c index b791d260e..e14086abc 100644 --- a/lib/util/getgrouplist.c +++ b/lib/util/getgrouplist.c @@ -15,6 +15,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/gethostname.c b/lib/util/gethostname.c index 7765e3df6..c2a6a4176 100644 --- a/lib/util/gethostname.c +++ b/lib/util/gethostname.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/getline.c b/lib/util/getline.c index 75ca2b847..636cc151a 100644 --- a/lib/util/getline.c +++ b/lib/util/getline.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #ifndef HAVE_GETLINE diff --git a/lib/util/getopt_long.c b/lib/util/getopt_long.c index 8eab52390..7f249065d 100644 --- a/lib/util/getopt_long.c +++ b/lib/util/getopt_long.c @@ -21,6 +21,9 @@ * Agency (DARPA) and Air Force Research Laboratory, Air Force * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ + +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com /*- * Copyright (c) 2000 The NetBSD Foundation, Inc. * All rights reserved. diff --git a/lib/util/gettime.c b/lib/util/gettime.c index 72bdbe6d7..b082a8329 100644 --- a/lib/util/gettime.c +++ b/lib/util/gettime.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/gidlist.c b/lib/util/gidlist.c index 6a2b28b61..17118783a 100644 --- a/lib/util/gidlist.c +++ b/lib/util/gidlist.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/isblank.c b/lib/util/isblank.c index 777aee033..b2545ef76 100644 --- a/lib/util/isblank.c +++ b/lib/util/isblank.c @@ -15,6 +15,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #ifndef HAVE_ISBLANK diff --git a/lib/util/key_val.c b/lib/util/key_val.c index 8ab8c24e0..a5788651c 100644 --- a/lib/util/key_val.c +++ b/lib/util/key_val.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/lbuf.c b/lib/util/lbuf.c index e2d92afb8..1d9de6e03 100644 --- a/lib/util/lbuf.c +++ b/lib/util/lbuf.c @@ -16,6 +16,9 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/locking.c b/lib/util/locking.c index d8582f13a..95bdae1d1 100644 --- a/lib/util/locking.c +++ b/lib/util/locking.c @@ -19,6 +19,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/memrchr.c b/lib/util/memrchr.c index 598eb9e8d..98103b101 100644 --- a/lib/util/memrchr.c +++ b/lib/util/memrchr.c @@ -15,6 +15,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #ifndef HAVE_MEMRCHR diff --git a/lib/util/memset_s.c b/lib/util/memset_s.c index d71cfb88d..e6c0d60a6 100644 --- a/lib/util/memset_s.c +++ b/lib/util/memset_s.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/mksiglist.c b/lib/util/mksiglist.c index d58b508eb..90e885780 100644 --- a/lib/util/mksiglist.c +++ b/lib/util/mksiglist.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include diff --git a/lib/util/mksigname.c b/lib/util/mksigname.c index 26b529c69..5145f3044 100644 --- a/lib/util/mksigname.c +++ b/lib/util/mksigname.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include diff --git a/lib/util/mktemp.c b/lib/util/mktemp.c index 4537b3ded..80f618562 100644 --- a/lib/util/mktemp.c +++ b/lib/util/mktemp.c @@ -15,6 +15,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #if !defined(HAVE_MKSTEMPS) || !defined(HAVE_MKDTEMP) diff --git a/lib/util/nanosleep.c b/lib/util/nanosleep.c index dba046c71..4f4ac7c7a 100644 --- a/lib/util/nanosleep.c +++ b/lib/util/nanosleep.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #ifndef HAVE_NANOSLEEP diff --git a/lib/util/parseln.c b/lib/util/parseln.c index 7ba3a85ff..8af54aea3 100644 --- a/lib/util/parseln.c +++ b/lib/util/parseln.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/pipe2.c b/lib/util/pipe2.c index c3986fa5a..32f5394f8 100644 --- a/lib/util/pipe2.c +++ b/lib/util/pipe2.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #ifndef HAVE_PIPE2 diff --git a/lib/util/progname.c b/lib/util/progname.c index de6f1033b..943275c06 100644 --- a/lib/util/progname.c +++ b/lib/util/progname.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/pw_dup.c b/lib/util/pw_dup.c index 61aebf030..4f892faa3 100644 --- a/lib/util/pw_dup.c +++ b/lib/util/pw_dup.c @@ -19,6 +19,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #ifndef HAVE_PW_DUP diff --git a/lib/util/reallocarray.c b/lib/util/reallocarray.c index 49aa0524f..fe04e4625 100644 --- a/lib/util/reallocarray.c +++ b/lib/util/reallocarray.c @@ -15,6 +15,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #ifndef HAVE_REALLOCARRAY diff --git a/lib/util/regress/atofoo/atofoo_test.c b/lib/util/regress/atofoo/atofoo_test.c index 1ad78ebd6..745d1b1c8 100644 --- a/lib/util/regress/atofoo/atofoo_test.c +++ b/lib/util/regress/atofoo/atofoo_test.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/regress/parse_gids/parse_gids_test.c b/lib/util/regress/parse_gids/parse_gids_test.c index da1a87aae..1394753b7 100644 --- a/lib/util/regress/parse_gids/parse_gids_test.c +++ b/lib/util/regress/parse_gids/parse_gids_test.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/regress/progname/progname_test.c b/lib/util/regress/progname/progname_test.c index 37c5c22f4..0f3bae73c 100644 --- a/lib/util/regress/progname/progname_test.c +++ b/lib/util/regress/progname/progname_test.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/regress/strsplit/strsplit_test.c b/lib/util/regress/strsplit/strsplit_test.c index c9aecdae4..b0b94d401 100644 --- a/lib/util/regress/strsplit/strsplit_test.c +++ b/lib/util/regress/strsplit/strsplit_test.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/regress/sudo_conf/conf_test.c b/lib/util/regress/sudo_conf/conf_test.c index 534b1df09..4e6086a77 100644 --- a/lib/util/regress/sudo_conf/conf_test.c +++ b/lib/util/regress/sudo_conf/conf_test.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/regress/sudo_parseln/parseln_test.c b/lib/util/regress/sudo_parseln/parseln_test.c index ac46dd8dd..11fef14b9 100644 --- a/lib/util/regress/sudo_parseln/parseln_test.c +++ b/lib/util/regress/sudo_parseln/parseln_test.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/regress/tailq/hltq_test.c b/lib/util/regress/tailq/hltq_test.c index 5333a15d1..c779439be 100644 --- a/lib/util/regress/tailq/hltq_test.c +++ b/lib/util/regress/tailq/hltq_test.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/regress/vsyslog/vsyslog_test.c b/lib/util/regress/vsyslog/vsyslog_test.c index 70a8d0dd2..b26fd8b63 100644 --- a/lib/util/regress/vsyslog/vsyslog_test.c +++ b/lib/util/regress/vsyslog/vsyslog_test.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/secure_path.c b/lib/util/secure_path.c index 97a8fa8ad..8b5a7cb08 100644 --- a/lib/util/secure_path.c +++ b/lib/util/secure_path.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/setgroups.c b/lib/util/setgroups.c index 82b0b806b..ca92c04ca 100644 --- a/lib/util/setgroups.c +++ b/lib/util/setgroups.c @@ -16,6 +16,9 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/sha2.c b/lib/util/sha2.c index 28b935c69..43fc390dc 100644 --- a/lib/util/sha2.c +++ b/lib/util/sha2.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + /* * Implementation of SHA-224, SHA-256, SHA-384 and SHA-512 * as per FIPS 180-4: Secure Hash Standard (SHS) diff --git a/lib/util/sig2str.c b/lib/util/sig2str.c index 42c5ad2ed..a52eddd99 100644 --- a/lib/util/sig2str.c +++ b/lib/util/sig2str.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #ifndef HAVE_SIG2STR diff --git a/lib/util/strlcat.c b/lib/util/strlcat.c index 98c0090f1..b10375334 100644 --- a/lib/util/strlcat.c +++ b/lib/util/strlcat.c @@ -17,6 +17,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #ifndef HAVE_STRLCAT diff --git a/lib/util/strlcpy.c b/lib/util/strlcpy.c index d2b0234e7..15e19e9d0 100644 --- a/lib/util/strlcpy.c +++ b/lib/util/strlcpy.c @@ -17,6 +17,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #ifndef HAVE_STRLCPY diff --git a/lib/util/strndup.c b/lib/util/strndup.c index b5fcade2f..3395d30e8 100644 --- a/lib/util/strndup.c +++ b/lib/util/strndup.c @@ -16,6 +16,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #ifndef HAVE_STRNDUP diff --git a/lib/util/strnlen.c b/lib/util/strnlen.c index 8b2b51320..2eda328d9 100644 --- a/lib/util/strnlen.c +++ b/lib/util/strnlen.c @@ -16,6 +16,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #ifndef HAVE_STRNLEN diff --git a/lib/util/strsignal.c b/lib/util/strsignal.c index 5d096b3b8..d130b8df7 100644 --- a/lib/util/strsignal.c +++ b/lib/util/strsignal.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #ifndef HAVE_STRSIGNAL diff --git a/lib/util/strsplit.c b/lib/util/strsplit.c index 3ea358557..10bb56ff7 100644 --- a/lib/util/strsplit.c +++ b/lib/util/strsplit.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/strtobool.c b/lib/util/strtobool.c index 36518cc46..bc948751d 100644 --- a/lib/util/strtobool.c +++ b/lib/util/strtobool.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/strtoid.c b/lib/util/strtoid.c index 428c3b7b1..e09f1a4ca 100644 --- a/lib/util/strtoid.c +++ b/lib/util/strtoid.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/strtomode.c b/lib/util/strtomode.c index 00dcda09d..db4611b2b 100644 --- a/lib/util/strtomode.c +++ b/lib/util/strtomode.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/strtonum.c b/lib/util/strtonum.c index 6e957fa7b..578fe6b06 100644 --- a/lib/util/strtonum.c +++ b/lib/util/strtonum.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/sudo_conf.c b/lib/util/sudo_conf.c index 16f26e555..2b2280301 100644 --- a/lib/util/sudo_conf.c +++ b/lib/util/sudo_conf.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/sudo_debug.c b/lib/util/sudo_debug.c index 06adaa8a9..d450530b5 100644 --- a/lib/util/sudo_debug.c +++ b/lib/util/sudo_debug.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/sudo_dso.c b/lib/util/sudo_dso.c index e4e6ec965..31054a97d 100644 --- a/lib/util/sudo_dso.c +++ b/lib/util/sudo_dso.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/term.c b/lib/util/term.c index 99d63e6ea..3655f2ef6 100644 --- a/lib/util/term.c +++ b/lib/util/term.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/ttyname_dev.c b/lib/util/ttyname_dev.c index 97585eb35..061ed94d8 100644 --- a/lib/util/ttyname_dev.c +++ b/lib/util/ttyname_dev.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/ttysize.c b/lib/util/ttysize.c index ddc38d989..47cbc6241 100644 --- a/lib/util/ttysize.c +++ b/lib/util/ttysize.c @@ -16,6 +16,9 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/lib/util/utimens.c b/lib/util/utimens.c index 2be02b5e0..eac4f121d 100644 --- a/lib/util/utimens.c +++ b/lib/util/utimens.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #if !defined(HAVE_FUTIMENS) || !defined(HAVE_UTIMENSAT) diff --git a/lib/util/vsyslog.c b/lib/util/vsyslog.c index 1289615bc..a99ea069f 100644 --- a/lib/util/vsyslog.c +++ b/lib/util/vsyslog.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/group_file/getgrent.c b/plugins/group_file/getgrent.c index c49b6b77c..2fe32586b 100644 --- a/plugins/group_file/getgrent.c +++ b/plugins/group_file/getgrent.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + /* * Trivial replacements for the libc getgr{uid,nam}() routines. */ diff --git a/plugins/group_file/group_file.c b/plugins/group_file/group_file.c index f1fe28545..1ecd8f34c 100644 --- a/plugins/group_file/group_file.c +++ b/plugins/group_file/group_file.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/group_file/plugin_test.c b/plugins/group_file/plugin_test.c index 32d82eadc..5f275e8ae 100644 --- a/plugins/group_file/plugin_test.c +++ b/plugins/group_file/plugin_test.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sample/sample_plugin.c b/plugins/sample/sample_plugin.c index e11b593af..2fc617a18 100644 --- a/plugins/sample/sample_plugin.c +++ b/plugins/sample/sample_plugin.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/alias.c b/plugins/sudoers/alias.c index d80dcfc97..e1273a620 100644 --- a/plugins/sudoers/alias.c +++ b/plugins/sudoers/alias.c @@ -17,6 +17,12 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/audit.c b/plugins/sudoers/audit.c index 26a2819eb..46a2397d4 100644 --- a/plugins/sudoers/audit.c +++ b/plugins/sudoers/audit.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/auth/afs.c b/plugins/sudoers/auth/afs.c index 5b19a3ed1..48ffabace 100644 --- a/plugins/sudoers/auth/afs.c +++ b/plugins/sudoers/auth/afs.c @@ -19,6 +19,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #ifdef HAVE_AFS diff --git a/plugins/sudoers/auth/aix_auth.c b/plugins/sudoers/auth/aix_auth.c index d92483c6a..f2639c1ec 100644 --- a/plugins/sudoers/auth/aix_auth.c +++ b/plugins/sudoers/auth/aix_auth.c @@ -18,6 +18,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #ifdef HAVE_AIXAUTH diff --git a/plugins/sudoers/auth/bsdauth.c b/plugins/sudoers/auth/bsdauth.c index 390263d31..5bffa6847 100644 --- a/plugins/sudoers/auth/bsdauth.c +++ b/plugins/sudoers/auth/bsdauth.c @@ -19,6 +19,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #ifdef HAVE_BSD_AUTH_H diff --git a/plugins/sudoers/auth/dce.c b/plugins/sudoers/auth/dce.c index d0188a499..79be6bb39 100644 --- a/plugins/sudoers/auth/dce.c +++ b/plugins/sudoers/auth/dce.c @@ -21,6 +21,9 @@ * Agency (DARPA) and Air Force Research Laboratory, Air Force * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ + +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com /* * The code below basically comes from the examples supplied on * the OSF DCE 1.0.3 manpages for the sec_login routines, with diff --git a/plugins/sudoers/auth/fwtk.c b/plugins/sudoers/auth/fwtk.c index 03d448b0f..35329f258 100644 --- a/plugins/sudoers/auth/fwtk.c +++ b/plugins/sudoers/auth/fwtk.c @@ -19,6 +19,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #ifdef HAVE_FWTK diff --git a/plugins/sudoers/auth/kerb5.c b/plugins/sudoers/auth/kerb5.c index 38d397904..04155367b 100644 --- a/plugins/sudoers/auth/kerb5.c +++ b/plugins/sudoers/auth/kerb5.c @@ -22,6 +22,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #ifdef HAVE_KERB5 diff --git a/plugins/sudoers/auth/pam.c b/plugins/sudoers/auth/pam.c index a47494485..993be54e0 100644 --- a/plugins/sudoers/auth/pam.c +++ b/plugins/sudoers/auth/pam.c @@ -18,6 +18,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #ifdef HAVE_PAM diff --git a/plugins/sudoers/auth/passwd.c b/plugins/sudoers/auth/passwd.c index 269e5a226..1fc58e7e6 100644 --- a/plugins/sudoers/auth/passwd.c +++ b/plugins/sudoers/auth/passwd.c @@ -18,6 +18,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/auth/rfc1938.c b/plugins/sudoers/auth/rfc1938.c index 154a0923e..22128ff43 100644 --- a/plugins/sudoers/auth/rfc1938.c +++ b/plugins/sudoers/auth/rfc1938.c @@ -19,6 +19,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #if defined(HAVE_SKEY) || defined(HAVE_OPIE) diff --git a/plugins/sudoers/auth/secureware.c b/plugins/sudoers/auth/secureware.c index 6624a2c0e..b56187b64 100644 --- a/plugins/sudoers/auth/secureware.c +++ b/plugins/sudoers/auth/secureware.c @@ -18,6 +18,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #ifdef HAVE_GETPRPWNAM diff --git a/plugins/sudoers/auth/securid5.c b/plugins/sudoers/auth/securid5.c index fd6fe6c4f..da78ba168 100644 --- a/plugins/sudoers/auth/securid5.c +++ b/plugins/sudoers/auth/securid5.c @@ -23,6 +23,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #ifdef HAVE_SECURID diff --git a/plugins/sudoers/auth/sia.c b/plugins/sudoers/auth/sia.c index ab18139b5..24c257a1d 100644 --- a/plugins/sudoers/auth/sia.c +++ b/plugins/sudoers/auth/sia.c @@ -21,6 +21,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #ifdef HAVE_SIA_SES_INIT diff --git a/plugins/sudoers/auth/sudo_auth.c b/plugins/sudoers/auth/sudo_auth.c index 6b5eae624..12c17398a 100644 --- a/plugins/sudoers/auth/sudo_auth.c +++ b/plugins/sudoers/auth/sudo_auth.c @@ -18,6 +18,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/base64.c b/plugins/sudoers/base64.c index b97398efa..5c47bed05 100644 --- a/plugins/sudoers/base64.c +++ b/plugins/sudoers/base64.c @@ -16,6 +16,9 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/boottime.c b/plugins/sudoers/boottime.c index a6cef04ff..26a2cedf6 100644 --- a/plugins/sudoers/boottime.c +++ b/plugins/sudoers/boottime.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/bsm_audit.c b/plugins/sudoers/bsm_audit.c index eaf92991e..8369965d6 100644 --- a/plugins/sudoers/bsm_audit.c +++ b/plugins/sudoers/bsm_audit.c @@ -15,6 +15,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #ifdef HAVE_BSM_AUDIT diff --git a/plugins/sudoers/check.c b/plugins/sudoers/check.c index 486a80d86..feda48098 100644 --- a/plugins/sudoers/check.c +++ b/plugins/sudoers/check.c @@ -19,6 +19,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/cvtsudoers.c b/plugins/sudoers/cvtsudoers.c index 59ee1e42b..5037312b6 100644 --- a/plugins/sudoers/cvtsudoers.c +++ b/plugins/sudoers/cvtsudoers.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + /* * Convert from the sudoers file format to LDIF or JSON format. */ diff --git a/plugins/sudoers/cvtsudoers_json.c b/plugins/sudoers/cvtsudoers_json.c index 8d57894e3..aa6295ba8 100644 --- a/plugins/sudoers/cvtsudoers_json.c +++ b/plugins/sudoers/cvtsudoers_json.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/cvtsudoers_ldif.c b/plugins/sudoers/cvtsudoers_ldif.c index 75064467e..53d1c29e6 100644 --- a/plugins/sudoers/cvtsudoers_ldif.c +++ b/plugins/sudoers/cvtsudoers_ldif.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/cvtsudoers_pwutil.c b/plugins/sudoers/cvtsudoers_pwutil.c index b4a236a5a..1fc0b47b7 100644 --- a/plugins/sudoers/cvtsudoers_pwutil.c +++ b/plugins/sudoers/cvtsudoers_pwutil.c @@ -19,6 +19,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/defaults.c b/plugins/sudoers/defaults.c index eac89e002..802556ae0 100644 --- a/plugins/sudoers/defaults.c +++ b/plugins/sudoers/defaults.c @@ -19,6 +19,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/digestname.c b/plugins/sudoers/digestname.c index 1b4b3f809..3278986ad 100644 --- a/plugins/sudoers/digestname.c +++ b/plugins/sudoers/digestname.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/editor.c b/plugins/sudoers/editor.c index 6708041ee..e8e980dee 100644 --- a/plugins/sudoers/editor.c +++ b/plugins/sudoers/editor.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/env.c b/plugins/sudoers/env.c index b708761b4..2eabf3765 100644 --- a/plugins/sudoers/env.c +++ b/plugins/sudoers/env.c @@ -19,6 +19,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/env_pattern.c b/plugins/sudoers/env_pattern.c index f3245d82b..e57a5852e 100644 --- a/plugins/sudoers/env_pattern.c +++ b/plugins/sudoers/env_pattern.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/file.c b/plugins/sudoers/file.c index 62a6eade7..b2d58df27 100644 --- a/plugins/sudoers/file.c +++ b/plugins/sudoers/file.c @@ -16,6 +16,9 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/filedigest.c b/plugins/sudoers/filedigest.c index c4ad8a369..8985edf5d 100644 --- a/plugins/sudoers/filedigest.c +++ b/plugins/sudoers/filedigest.c @@ -16,6 +16,9 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/find_path.c b/plugins/sudoers/find_path.c index dba3a0875..e8fa87186 100644 --- a/plugins/sudoers/find_path.c +++ b/plugins/sudoers/find_path.c @@ -19,6 +19,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/fmtsudoers.c b/plugins/sudoers/fmtsudoers.c index c297f622b..5270fa3bb 100644 --- a/plugins/sudoers/fmtsudoers.c +++ b/plugins/sudoers/fmtsudoers.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/gc.c b/plugins/sudoers/gc.c index 8093c8383..97a6d37fe 100644 --- a/plugins/sudoers/gc.c +++ b/plugins/sudoers/gc.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/gentime.c b/plugins/sudoers/gentime.c index d786be82d..c7ec4a816 100644 --- a/plugins/sudoers/gentime.c +++ b/plugins/sudoers/gentime.c @@ -16,6 +16,9 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/getdate.c b/plugins/sudoers/getdate.c index 11f55105a..0700eab94 100644 --- a/plugins/sudoers/getdate.c +++ b/plugins/sudoers/getdate.c @@ -1,3 +1,6 @@ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include #include diff --git a/plugins/sudoers/getspwuid.c b/plugins/sudoers/getspwuid.c index f77e132a5..6fc1be0a3 100644 --- a/plugins/sudoers/getspwuid.c +++ b/plugins/sudoers/getspwuid.c @@ -19,6 +19,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/gmtoff.c b/plugins/sudoers/gmtoff.c index 9e9dafda7..5767b5b8a 100644 --- a/plugins/sudoers/gmtoff.c +++ b/plugins/sudoers/gmtoff.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/goodpath.c b/plugins/sudoers/goodpath.c index 0ceb09ecd..1692e4df1 100644 --- a/plugins/sudoers/goodpath.c +++ b/plugins/sudoers/goodpath.c @@ -19,6 +19,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/gram.c b/plugins/sudoers/gram.c index 85a8b8a1d..1f26d163e 100644 --- a/plugins/sudoers/gram.c +++ b/plugins/sudoers/gram.c @@ -1,3 +1,6 @@ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include #include diff --git a/plugins/sudoers/group_plugin.c b/plugins/sudoers/group_plugin.c index ec753c81b..604d17a32 100644 --- a/plugins/sudoers/group_plugin.c +++ b/plugins/sudoers/group_plugin.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/hexchar.c b/plugins/sudoers/hexchar.c index 9077a73e4..302576855 100644 --- a/plugins/sudoers/hexchar.c +++ b/plugins/sudoers/hexchar.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/interfaces.c b/plugins/sudoers/interfaces.c index 77f8d06c0..4c31c8553 100644 --- a/plugins/sudoers/interfaces.c +++ b/plugins/sudoers/interfaces.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/iolog.c b/plugins/sudoers/iolog.c index ed470ab4a..b86fc201f 100644 --- a/plugins/sudoers/iolog.c +++ b/plugins/sudoers/iolog.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/iolog_path.c b/plugins/sudoers/iolog_path.c index 0758512bf..803ba3272 100644 --- a/plugins/sudoers/iolog_path.c +++ b/plugins/sudoers/iolog_path.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/iolog_util.c b/plugins/sudoers/iolog_util.c index 6fd7ba3b3..ce59c9e30 100644 --- a/plugins/sudoers/iolog_util.c +++ b/plugins/sudoers/iolog_util.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/ldap.c b/plugins/sudoers/ldap.c index e1f858268..5a0df5727 100644 --- a/plugins/sudoers/ldap.c +++ b/plugins/sudoers/ldap.c @@ -16,6 +16,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/ldap_conf.c b/plugins/sudoers/ldap_conf.c index 9d18f6d8a..b05cfdc39 100644 --- a/plugins/sudoers/ldap_conf.c +++ b/plugins/sudoers/ldap_conf.c @@ -16,6 +16,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/ldap_util.c b/plugins/sudoers/ldap_util.c index bcfa75c6b..78e638063 100644 --- a/plugins/sudoers/ldap_util.c +++ b/plugins/sudoers/ldap_util.c @@ -16,6 +16,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/linux_audit.c b/plugins/sudoers/linux_audit.c index 10ddb3ef7..26608fe36 100644 --- a/plugins/sudoers/linux_audit.c +++ b/plugins/sudoers/linux_audit.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #ifdef HAVE_LINUX_AUDIT diff --git a/plugins/sudoers/locale.c b/plugins/sudoers/locale.c index 9e3f36926..75200ed9b 100644 --- a/plugins/sudoers/locale.c +++ b/plugins/sudoers/locale.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/logging.c b/plugins/sudoers/logging.c index f16a546ce..67c512ec7 100644 --- a/plugins/sudoers/logging.c +++ b/plugins/sudoers/logging.c @@ -18,6 +18,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #ifdef __TANDEM # include #endif diff --git a/plugins/sudoers/logwrap.c b/plugins/sudoers/logwrap.c index 4fd88dacc..c6144f4a0 100644 --- a/plugins/sudoers/logwrap.c +++ b/plugins/sudoers/logwrap.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/match.c b/plugins/sudoers/match.c index b3354aabe..404bc869a 100644 --- a/plugins/sudoers/match.c +++ b/plugins/sudoers/match.c @@ -21,6 +21,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/match_addr.c b/plugins/sudoers/match_addr.c index 46cd93151..bf1367037 100644 --- a/plugins/sudoers/match_addr.c +++ b/plugins/sudoers/match_addr.c @@ -21,6 +21,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/mkdir_parents.c b/plugins/sudoers/mkdir_parents.c index 3c22cde9f..c19c02751 100644 --- a/plugins/sudoers/mkdir_parents.c +++ b/plugins/sudoers/mkdir_parents.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/parse.c b/plugins/sudoers/parse.c index 438449a93..849b70694 100644 --- a/plugins/sudoers/parse.c +++ b/plugins/sudoers/parse.c @@ -16,6 +16,9 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/parse_ldif.c b/plugins/sudoers/parse_ldif.c index 024430ca8..45d03da66 100644 --- a/plugins/sudoers/parse_ldif.c +++ b/plugins/sudoers/parse_ldif.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/policy.c b/plugins/sudoers/policy.c index 9156eb043..0a1631354 100644 --- a/plugins/sudoers/policy.c +++ b/plugins/sudoers/policy.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/prompt.c b/plugins/sudoers/prompt.c index de3259742..236408966 100644 --- a/plugins/sudoers/prompt.c +++ b/plugins/sudoers/prompt.c @@ -19,6 +19,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/pwutil.c b/plugins/sudoers/pwutil.c index 28fbeeb2f..07e9e81cf 100644 --- a/plugins/sudoers/pwutil.c +++ b/plugins/sudoers/pwutil.c @@ -19,6 +19,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/pwutil_impl.c b/plugins/sudoers/pwutil_impl.c index 6d30fe08c..dd152cb1a 100644 --- a/plugins/sudoers/pwutil_impl.c +++ b/plugins/sudoers/pwutil_impl.c @@ -19,6 +19,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/rcstr.c b/plugins/sudoers/rcstr.c index 16511edee..ef4ba2a51 100644 --- a/plugins/sudoers/rcstr.c +++ b/plugins/sudoers/rcstr.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/redblack.c b/plugins/sudoers/redblack.c index 6ffa15219..3a19927e1 100644 --- a/plugins/sudoers/redblack.c +++ b/plugins/sudoers/redblack.c @@ -15,6 +15,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + /* * Adapted from the following code written by Emin Martinian: * http://web.mit.edu/~emin/www/source_code/red_black_tree/index.html diff --git a/plugins/sudoers/regress/check_symbols/check_symbols.c b/plugins/sudoers/regress/check_symbols/check_symbols.c index 664760978..cd24cf177 100644 --- a/plugins/sudoers/regress/check_symbols/check_symbols.c +++ b/plugins/sudoers/regress/check_symbols/check_symbols.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/regress/env_match/check_env_pattern.c b/plugins/sudoers/regress/env_match/check_env_pattern.c index 96dc8c56d..6f1e9b2ab 100644 --- a/plugins/sudoers/regress/env_match/check_env_pattern.c +++ b/plugins/sudoers/regress/env_match/check_env_pattern.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/regress/iolog_path/check_iolog_path.c b/plugins/sudoers/regress/iolog_path/check_iolog_path.c index 69ea767f2..44e53446f 100644 --- a/plugins/sudoers/regress/iolog_path/check_iolog_path.c +++ b/plugins/sudoers/regress/iolog_path/check_iolog_path.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/regress/iolog_plugin/check_iolog_plugin.c b/plugins/sudoers/regress/iolog_plugin/check_iolog_plugin.c index 456ed3c35..e66674372 100644 --- a/plugins/sudoers/regress/iolog_plugin/check_iolog_plugin.c +++ b/plugins/sudoers/regress/iolog_plugin/check_iolog_plugin.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/regress/iolog_util/check_iolog_util.c b/plugins/sudoers/regress/iolog_util/check_iolog_util.c index d9c932d31..915ebce74 100644 --- a/plugins/sudoers/regress/iolog_util/check_iolog_util.c +++ b/plugins/sudoers/regress/iolog_util/check_iolog_util.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/regress/logging/check_wrap.c b/plugins/sudoers/regress/logging/check_wrap.c index cc007adb4..d266c2c04 100644 --- a/plugins/sudoers/regress/logging/check_wrap.c +++ b/plugins/sudoers/regress/logging/check_wrap.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/regress/parser/check_addr.c b/plugins/sudoers/regress/parser/check_addr.c index 5f67d4dca..1b813365b 100644 --- a/plugins/sudoers/regress/parser/check_addr.c +++ b/plugins/sudoers/regress/parser/check_addr.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/regress/parser/check_base64.c b/plugins/sudoers/regress/parser/check_base64.c index a3f28e0af..e5d13b63f 100644 --- a/plugins/sudoers/regress/parser/check_base64.c +++ b/plugins/sudoers/regress/parser/check_base64.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/regress/parser/check_digest.c b/plugins/sudoers/regress/parser/check_digest.c index 0d49a35df..ee7187974 100644 --- a/plugins/sudoers/regress/parser/check_digest.c +++ b/plugins/sudoers/regress/parser/check_digest.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/regress/parser/check_fill.c b/plugins/sudoers/regress/parser/check_fill.c index e0312b6b1..782de35c7 100644 --- a/plugins/sudoers/regress/parser/check_fill.c +++ b/plugins/sudoers/regress/parser/check_fill.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/regress/parser/check_gentime.c b/plugins/sudoers/regress/parser/check_gentime.c index 957ea4c04..b4f7def12 100644 --- a/plugins/sudoers/regress/parser/check_gentime.c +++ b/plugins/sudoers/regress/parser/check_gentime.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/regress/parser/check_hexchar.c b/plugins/sudoers/regress/parser/check_hexchar.c index d4f965783..bd2427fee 100644 --- a/plugins/sudoers/regress/parser/check_hexchar.c +++ b/plugins/sudoers/regress/parser/check_hexchar.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/regress/starttime/check_starttime.c b/plugins/sudoers/regress/starttime/check_starttime.c index e858ad370..433eddfb3 100644 --- a/plugins/sudoers/regress/starttime/check_starttime.c +++ b/plugins/sudoers/regress/starttime/check_starttime.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/set_perms.c b/plugins/sudoers/set_perms.c index febfc5a72..431604298 100644 --- a/plugins/sudoers/set_perms.c +++ b/plugins/sudoers/set_perms.c @@ -18,6 +18,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/solaris_audit.c b/plugins/sudoers/solaris_audit.c index 92c46c512..0596c6b4c 100644 --- a/plugins/sudoers/solaris_audit.c +++ b/plugins/sudoers/solaris_audit.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #ifdef HAVE_SOLARIS_AUDIT diff --git a/plugins/sudoers/sssd.c b/plugins/sudoers/sssd.c index c522f3163..c2c08dce5 100644 --- a/plugins/sudoers/sssd.c +++ b/plugins/sudoers/sssd.c @@ -17,6 +17,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #ifdef HAVE_SSSD diff --git a/plugins/sudoers/starttime.c b/plugins/sudoers/starttime.c index 00a99b1ec..d5594033f 100644 --- a/plugins/sudoers/starttime.c +++ b/plugins/sudoers/starttime.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include /* Large files not supported by procfs.h on Solaris. */ diff --git a/plugins/sudoers/strlist.c b/plugins/sudoers/strlist.c index 384e3d525..b43860022 100644 --- a/plugins/sudoers/strlist.c +++ b/plugins/sudoers/strlist.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/stubs.c b/plugins/sudoers/stubs.c index bc1c6eacc..f5c01de64 100644 --- a/plugins/sudoers/stubs.c +++ b/plugins/sudoers/stubs.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + /* * Stub versions of functions needed by the parser. * Required to link cvtsudoers and visudo. diff --git a/plugins/sudoers/sudo_nss.c b/plugins/sudoers/sudo_nss.c index bdd9a502a..f17db7881 100644 --- a/plugins/sudoers/sudo_nss.c +++ b/plugins/sudoers/sudo_nss.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/sudo_printf.c b/plugins/sudoers/sudo_printf.c index f826ed0ff..913ea9763 100644 --- a/plugins/sudoers/sudo_printf.c +++ b/plugins/sudoers/sudo_printf.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/sudoers.c b/plugins/sudoers/sudoers.c index 7d7b3f5ac..909cbd450 100644 --- a/plugins/sudoers/sudoers.c +++ b/plugins/sudoers/sudoers.c @@ -18,6 +18,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #ifdef __TANDEM # include #endif diff --git a/plugins/sudoers/sudoers_debug.c b/plugins/sudoers/sudoers_debug.c index 69fe46d7f..1056755b9 100644 --- a/plugins/sudoers/sudoers_debug.c +++ b/plugins/sudoers/sudoers_debug.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/sudoreplay.c b/plugins/sudoers/sudoreplay.c index f7f14f1be..d41cf7078 100644 --- a/plugins/sudoers/sudoreplay.c +++ b/plugins/sudoers/sudoreplay.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/testsudoers.c b/plugins/sudoers/testsudoers.c index 1968f903d..729b51e55 100644 --- a/plugins/sudoers/testsudoers.c +++ b/plugins/sudoers/testsudoers.c @@ -21,6 +21,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/timeout.c b/plugins/sudoers/timeout.c index c9ae07c3b..30f3e1f05 100644 --- a/plugins/sudoers/timeout.c +++ b/plugins/sudoers/timeout.c @@ -16,6 +16,9 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/timestamp.c b/plugins/sudoers/timestamp.c index 511029d82..8d78b4651 100644 --- a/plugins/sudoers/timestamp.c +++ b/plugins/sudoers/timestamp.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/timestr.c b/plugins/sudoers/timestr.c index 7db9f437b..68b1ffa1f 100644 --- a/plugins/sudoers/timestr.c +++ b/plugins/sudoers/timestr.c @@ -15,6 +15,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/toke.c b/plugins/sudoers/toke.c index 85c96ba0d..91a77ab10 100644 --- a/plugins/sudoers/toke.c +++ b/plugins/sudoers/toke.c @@ -1,3 +1,6 @@ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #line 3 "toke.c" diff --git a/plugins/sudoers/toke_util.c b/plugins/sudoers/toke_util.c index d6754b469..ae02ab6be 100644 --- a/plugins/sudoers/toke_util.c +++ b/plugins/sudoers/toke_util.c @@ -22,6 +22,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/tsdump.c b/plugins/sudoers/tsdump.c index 54c9d35d7..c488926e6 100644 --- a/plugins/sudoers/tsdump.c +++ b/plugins/sudoers/tsdump.c @@ -16,6 +16,9 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/plugins/sudoers/tsgetgrpw.c b/plugins/sudoers/tsgetgrpw.c index 1c6525985..3aef27980 100644 --- a/plugins/sudoers/tsgetgrpw.c +++ b/plugins/sudoers/tsgetgrpw.c @@ -15,6 +15,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + /* * Trivial replacements for the libc get{gr,pw}{uid,nam}() routines * for use by testsudoers in the sudo test harness. diff --git a/plugins/sudoers/visudo.c b/plugins/sudoers/visudo.c index 7082ec812..38d70573e 100644 --- a/plugins/sudoers/visudo.c +++ b/plugins/sudoers/visudo.c @@ -19,6 +19,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + /* * Lock the sudoers file for safe editing (ala vipw) and check for parse errors. */ diff --git a/plugins/system_group/system_group.c b/plugins/system_group/system_group.c index 24c6a0a5b..79f160bf9 100644 --- a/plugins/system_group/system_group.c +++ b/plugins/system_group/system_group.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/src/conversation.c b/src/conversation.c index 969adbec1..6e2a6fbee 100644 --- a/src/conversation.c +++ b/src/conversation.c @@ -18,6 +18,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/src/env_hooks.c b/src/env_hooks.c index 2b0d29bef..fdf39bd47 100644 --- a/src/env_hooks.c +++ b/src/env_hooks.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/src/exec.c b/src/exec.c index 60b150dc1..c071c8f94 100644 --- a/src/exec.c +++ b/src/exec.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/src/exec_common.c b/src/exec_common.c index 58b18456b..1b0e984d2 100644 --- a/src/exec_common.c +++ b/src/exec_common.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/src/exec_monitor.c b/src/exec_monitor.c index e09f2212c..8592fc627 100644 --- a/src/exec_monitor.c +++ b/src/exec_monitor.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/src/exec_nopty.c b/src/exec_nopty.c index e7941cb9d..51535cd7f 100644 --- a/src/exec_nopty.c +++ b/src/exec_nopty.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/src/exec_pty.c b/src/exec_pty.c index d2088cfc4..78a0d14f0 100644 --- a/src/exec_pty.c +++ b/src/exec_pty.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/src/get_pty.c b/src/get_pty.c index 9bf7225ef..37082c1b2 100644 --- a/src/get_pty.c +++ b/src/get_pty.c @@ -15,6 +15,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/src/hooks.c b/src/hooks.c index 6964fe838..2dd3664de 100644 --- a/src/hooks.c +++ b/src/hooks.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/src/load_plugins.c b/src/load_plugins.c index 5c2706b3e..7709a89be 100644 --- a/src/load_plugins.c +++ b/src/load_plugins.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include @@ -208,19 +211,17 @@ sudo_load_plugin(struct plugin_container *policy_plugin, info->symbol_name, _PATH_SUDO_CONF, info->lineno); goto bad; } - if (handle != NULL) { - policy_plugin->handle = handle; - policy_plugin->path = strdup(path); - if (policy_plugin->path == NULL) { - sudo_warnx(U_("%s: %s"), __func__, U_("unable to allocate memory")); - goto bad; - } - policy_plugin->name = info->symbol_name; - policy_plugin->options = info->options; - policy_plugin->debug_instance = SUDO_DEBUG_INSTANCE_INITIALIZER; - policy_plugin->u.generic = plugin; - policy_plugin->debug_files = sudo_conf_debug_files(path); + policy_plugin->handle = handle; + policy_plugin->path = strdup(path); + if (policy_plugin->path == NULL) { + sudo_warnx(U_("%s: %s"), __func__, U_("unable to allocate memory")); + goto bad; } + policy_plugin->name = info->symbol_name; + policy_plugin->options = info->options; + policy_plugin->debug_instance = SUDO_DEBUG_INSTANCE_INITIALIZER; + policy_plugin->u.generic = plugin; + policy_plugin->debug_files = sudo_conf_debug_files(path); } else if (plugin->type == SUDO_IO_PLUGIN) { /* Check for duplicate entries. */ TAILQ_FOREACH(container, io_plugins, entries) { @@ -232,20 +233,18 @@ sudo_load_plugin(struct plugin_container *policy_plugin, break; } } - if (handle != NULL) { - container = calloc(1, sizeof(*container)); - if (container == NULL || (container->path = strdup(path)) == NULL) { - sudo_warnx(U_("%s: %s"), __func__, U_("unable to allocate memory")); - goto bad; - } - container->handle = handle; - container->name = info->symbol_name; - container->options = info->options; - container->debug_instance = SUDO_DEBUG_INSTANCE_INITIALIZER; - container->u.generic = plugin; - container->debug_files = sudo_conf_debug_files(path); - TAILQ_INSERT_TAIL(io_plugins, container, entries); + container = calloc(1, sizeof(*container)); + if (container == NULL || (container->path = strdup(path)) == NULL) { + sudo_warnx(U_("%s: %s"), __func__, U_("unable to allocate memory")); + goto bad; } + container->handle = handle; + container->name = info->symbol_name; + container->options = info->options; + container->debug_instance = SUDO_DEBUG_INSTANCE_INITIALIZER; + container->u.generic = plugin; + container->debug_files = sudo_conf_debug_files(path); + TAILQ_INSERT_TAIL(io_plugins, container, entries); } /* Zero out info strings that we now own (see above). */ diff --git a/src/net_ifs.c b/src/net_ifs.c index 6887f2458..2bc72fe25 100644 --- a/src/net_ifs.c +++ b/src/net_ifs.c @@ -19,6 +19,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + /* * Suppress a warning w/ gcc on Digital UN*X. * The system headers should really do this.... diff --git a/src/openbsd.c b/src/openbsd.c index 2fb1158f2..6fb174da5 100644 --- a/src/openbsd.c +++ b/src/openbsd.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/src/parse_args.c b/src/parse_args.c index 918201102..1f1a3ef1d 100644 --- a/src/parse_args.c +++ b/src/parse_args.c @@ -18,6 +18,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/src/preload.c b/src/preload.c index d97d2f74a..73e2bebf2 100644 --- a/src/preload.c +++ b/src/preload.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/src/preserve_fds.c b/src/preserve_fds.c index b92ed5fea..2d6fd841d 100644 --- a/src/preserve_fds.c +++ b/src/preserve_fds.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/src/regress/noexec/check_noexec.c b/src/regress/noexec/check_noexec.c index e83f42095..892aa1a8a 100644 --- a/src/regress/noexec/check_noexec.c +++ b/src/regress/noexec/check_noexec.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/src/regress/ttyname/check_ttyname.c b/src/regress/ttyname/check_ttyname.c index 1609cd096..defb7dbec 100644 --- a/src/regress/ttyname/check_ttyname.c +++ b/src/regress/ttyname/check_ttyname.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/src/selinux.c b/src/selinux.c index a9dfcc4fa..a9953e2be 100644 --- a/src/selinux.c +++ b/src/selinux.c @@ -24,6 +24,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #ifdef HAVE_SELINUX diff --git a/src/sesh.c b/src/sesh.c index 9bbd062ee..46d68c8a8 100644 --- a/src/sesh.c +++ b/src/sesh.c @@ -16,6 +16,9 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/src/signal.c b/src/signal.c index 3150e14a8..e7212d207 100644 --- a/src/signal.c +++ b/src/signal.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/src/solaris.c b/src/solaris.c index 0f8f2a848..5fc07117a 100644 --- a/src/solaris.c +++ b/src/solaris.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/src/sudo.c b/src/sudo.c index c318fda01..e247e66e9 100644 --- a/src/sudo.c +++ b/src/sudo.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #ifdef __TANDEM # include #endif diff --git a/src/sudo_edit.c b/src/sudo_edit.c index 34ef0aabd..b967add25 100644 --- a/src/sudo_edit.c +++ b/src/sudo_edit.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/src/sudo_noexec.c b/src/sudo_noexec.c index 1034e60a4..c4a383082 100644 --- a/src/sudo_noexec.c +++ b/src/sudo_noexec.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/src/tcsetpgrp_nobg.c b/src/tcsetpgrp_nobg.c index 4e0596ca1..da9a4820f 100644 --- a/src/tcsetpgrp_nobg.c +++ b/src/tcsetpgrp_nobg.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include diff --git a/src/tgetpass.c b/src/tgetpass.c index 989f91eaa..d4b28adef 100644 --- a/src/tgetpass.c +++ b/src/tgetpass.c @@ -19,6 +19,9 @@ * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #ifdef __TANDEM # include #endif diff --git a/src/ttyname.c b/src/ttyname.c index 13f0276fd..7a8f75a5b 100644 --- a/src/ttyname.c +++ b/src/ttyname.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include /* Large files not supported by procfs.h on Solaris. */ diff --git a/src/utmp.c b/src/utmp.c index cc8dec8a8..d33730a2c 100644 --- a/src/utmp.c +++ b/src/utmp.c @@ -14,6 +14,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +// This is an open source non-commercial project. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include #include