Rikard Falkeborn
fc1d5b187f
leakNoVarFunctionCall: Use AST more ( fix #9252 ) ( #2086 )
...
Use the AST a little bit more to improve the check. In order to do so,
rewrite the check to work from the outer function first and then check
the arguments, instead of the other way around.
It also fixes Trac ticket #9252 , no warning is now given for
void* malloc1() {
return(malloc1(1));
}
This FP seems to be common in daca results.
It also makes it possible to improve handling of casts, for example
cppcheck now warns about
void f() {
strcpy(a, (void*) strdup(p));
}
But not for
char* f() {
char* ret = (char*)strcpy(malloc(10), "abc");
return ret;
}
These FP/FN were introduced when the check was switched to use the
simplified token list.
2019-08-14 22:01:40 +02:00
..
2019-06-29 07:49:14 +02:00
2018-10-13 18:20:31 +02:00
2019-08-08 21:05:28 +02:00
2019-08-08 07:46:47 +02:00
2018-06-16 16:10:28 +02:00
2019-03-16 09:17:50 +01:00
2019-07-25 17:19:51 +02:00
2019-07-25 17:19:51 +02:00
2019-02-09 07:24:06 +01:00
2019-03-16 09:17:50 +01:00
2019-08-14 20:09:33 +02:00
2019-07-07 10:16:19 +02:00
2019-06-29 07:49:14 +02:00
2019-03-16 09:17:50 +01:00
2018-06-16 16:10:28 +02:00
2019-03-16 09:17:50 +01:00
2019-07-16 10:51:26 +02:00
2019-06-15 13:01:45 +02:00
2019-08-13 20:58:31 +02:00
2019-08-13 20:58:31 +02:00
2019-07-16 08:21:25 +02:00
2019-07-16 08:21:25 +02:00
2018-07-14 09:49:03 +02:00
2019-03-16 09:17:50 +01:00
2019-07-16 08:49:02 +02:00
2019-07-16 08:49:02 +02:00
2019-04-06 07:44:44 +02:00
2019-03-16 09:17:50 +01:00
2019-07-16 09:30:36 +02:00
2019-07-16 08:37:26 +02:00
2019-08-07 08:04:10 +02:00
2019-07-16 08:54:21 +02:00
2019-08-14 22:01:40 +02:00
2019-08-13 13:00:59 +02:00
2019-04-26 11:30:09 +02:00
2019-03-16 09:17:50 +01:00
2019-07-24 20:59:58 +02:00
2019-07-24 09:59:01 +02:00
2018-07-13 16:50:12 +02:00
2019-03-16 09:17:50 +01:00
2019-06-29 07:49:14 +02:00
2019-03-16 09:17:50 +01:00
2019-08-12 12:58:53 +02:00
2019-07-18 10:56:44 +02:00
2019-07-05 12:27:39 +02:00
2019-04-06 06:54:38 +02:00
2019-08-05 12:41:08 +02:00
2019-08-05 12:41:08 +02:00
2019-08-02 21:14:29 +02:00
2019-07-14 12:22:33 +02:00
2019-04-27 17:17:51 +02:00
2019-03-16 09:17:50 +01:00
2019-08-04 10:21:16 +02:00
2019-03-16 09:17:50 +01:00
2019-02-09 07:24:06 +01:00
2019-03-16 09:17:50 +01:00
2019-04-22 18:52:02 +02:00
2019-05-17 09:31:41 +02:00
2019-08-10 07:43:47 +02:00
2019-04-14 15:00:03 +02:00
2018-07-09 08:27:26 +02:00
2019-07-15 12:39:58 +02:00
2018-12-27 22:11:40 +01:00
2019-07-14 12:22:33 +02:00
2019-07-31 22:56:16 +02:00
2019-07-15 12:41:06 +02:00
2019-07-15 12:41:06 +02:00
2019-08-09 21:15:02 +02:00
2019-08-12 12:54:25 +02:00
2019-08-14 20:53:51 +02:00
2019-07-17 11:39:30 +02:00
2019-08-01 20:56:02 +02:00
2019-07-17 10:43:18 +02:00
2019-02-09 07:24:06 +01:00
2019-04-30 20:31:46 +02:00
2019-02-09 07:24:06 +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
2019-07-14 12:22:33 +02:00
2019-05-09 06:55:36 +02:00
2018-06-17 09:06:16 +02:00
2019-07-31 22:35:51 +02:00
2019-07-23 11:54:38 +02:00
2019-06-29 07:49:14 +02:00
2019-06-29 07:53:32 +02:00
2019-06-29 07:53:32 +02:00
2019-08-08 07:46:47 +02:00
2019-08-08 07:46:47 +02:00
2019-08-10 08:42:12 +02:00
2019-08-10 08:42:12 +02:00
2019-07-31 22:35:51 +02:00
2019-07-31 22:35:51 +02:00
2019-08-10 08:42:12 +02:00
2019-08-07 08:02:07 +02:00
2019-08-07 08:05:02 +02:00
2019-07-31 09:19:27 +02:00
2019-07-17 10:14:25 +02:00
2019-07-17 10:14:25 +02:00
2019-07-24 15:08:26 +02:00
2019-08-14 06:34:27 +02:00
2019-07-25 17:19:51 +02:00
2019-07-02 20:59:52 +02:00