cppcheck/test/cfg
rikardfalkeborn 613dc19b68 #4241: Check for address of single character passed as string (#1381)
* #4241: Check for address of single character passed as string

Add a check that address of a single character is not passed as argument
to argument marked as strings (using strz). The check does not warn if
the address of a character with known value '\0'.

Since ValueFlow currently does not handle global constants (see #7597),
do not warn if the variable is global to avoid FPs when the address of
a global variable assigned to '\0' is passed to a function expecting a
string.

Remove comment in docs saying strz is unused.

* Change asdf to Hello world

* Add test of address to first element in string

* Add error reporting function to getErrorMessages

* Fix strings in test
2018-10-14 18:49:34 +02:00
..
bsd.c bsd.cfg: Add arc4random* functions with tests. (#1344) 2018-08-16 21:37:40 +02:00
generate-cfg-tests.sh add script to generate cfg tests 2018-03-18 13:03:19 +01:00
gnu.c Skip some test on cygwin since interface is not available 2018-09-29 16:49:12 +02:00
gtk.c Gtk library: Add configuration to avoid syntax error, add test file (#1109) 2018-03-10 11:22:10 +01:00
posix.c posix.cfg: Add some pthread_mutex_* functions. (#1320) 2018-07-21 17:52:12 +02:00
qt.cpp Fixed #8076 (unmatched suppression when calling ./runtests.sh (test/cfg)) 2018-01-10 15:52:06 +01:00
runtests.sh runtest.sh: Bugfix cfg dir when run in test/cfg (#1311) 2018-07-15 22:24:31 +02:00
std.c #4241: Check for address of single character passed as string (#1381) 2018-10-14 18:49:34 +02:00
std.cpp test:std.cpp: Removed duplicate include <csetjmp>. 2018-10-06 00:23:14 +02:00
windows.cpp windows.cfg: Added support for _locale_t 2018-06-08 14:41:56 +02:00
wxwidgets.cpp wxwidgets.cfg: Improved support for wxString to number conversion functions. 2018-04-07 20:27:02 +02:00