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
..
2018-10-13 18:20:31 +02:00
2018-10-13 18:20:31 +02:00
2018-06-16 16:31:07 +02:00
2018-07-14 10:02:32 +02:00
2018-05-15 16:37:40 +02:00
2018-07-13 16:57:17 +02:00
2018-07-15 23:05:48 +02:00
2018-06-17 17:04:34 +02:00
2018-10-13 18:20:31 +02:00
2018-01-14 15:37:52 +01:00
2018-10-13 18:20:31 +02:00
2018-10-13 18:20:31 +02:00
2018-03-31 20:59:09 +02:00
2018-03-31 20:59:09 +02:00
2018-06-17 09:06:16 +02:00
2018-10-13 18:20:31 +02:00
2018-01-14 15:37:52 +01:00
2018-06-20 10:39:21 +02:00
2018-06-17 17:20:16 +02:00
2018-06-17 17:20:16 +02:00
2018-06-16 16:28:03 +02:00
2018-10-13 18:20:31 +02:00
2018-10-13 18:55:19 +02:00