Ted Kremenek
|
369b3fa752
|
Rename -Wstrl-incorrect-size to -Wstrlcpy-strlcat-size. This warning really is just specific to strlcpy and strlcat.
llvm-svn: 138038
|
2011-08-19 14:35:32 +00:00 |
Ted Kremenek
|
18db5d4e9d
|
Enhance -Wstrl-incorrect-size to not report a FIXIT for destinations that are flexible arrays or have size 1.
llvm-svn: 138004
|
2011-08-18 22:48:41 +00:00 |
Ted Kremenek
|
6865f77fdd
|
Reapply r137903, but fix the definition of size_t in the test case to use __SIZE_TYPE__ (and hence be portable).
Also, change the warning to -Wstrl-incorrect-size.
llvm-svn: 137980
|
2011-08-18 20:55:45 +00:00 |
Ted Kremenek
|
13fd55d85f
|
Revert r137903, "Add experimental -Wstrlcpy-size warning that looks to see if the size argument for strlcpy/strlcat is the size of the *source*, and not the size of the *destination*. This warning is off by default (for now)."
This currently doesn't work on Windows.
llvm-svn: 137920
|
2011-08-18 02:18:02 +00:00 |
Ted Kremenek
|
d5fe9e4d97
|
Add experimental -Wstrlcpy-size warning that looks to see if the size argument for strlcpy/strlcat is the size of the *source*, and not the size of the *destination*. This warning is off by default (for now).
Warning logic provided by Geoff Keating.
llvm-svn: 137903
|
2011-08-17 23:40:36 +00:00 |