diff options
author | Ben Dooks <ben.dooks@codethink.co.uk> | 2018-10-30 10:36:26 +0000 |
---|---|---|
committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-10-05 12:56:10 +0200 |
commit | efc02e9ee225d1327be004181da74f59f2aa2c11 (patch) | |
tree | 04803b041d535bde1eecd7aab2be20be38290721 /verify-format.h | |
parent | 375690b61e8ec4735b19bcead756ba526edab57e (diff) | |
download | sparse-format-check.tar.gz |
evaluate: check variadic argument types against format stringformat-check
The variadic argument code did not check any of the variadic arguments
as it did not previously know the possible type. Now we have the possible
formatting information stored in the ctype, we can do some checks on the
printf formatting types.
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'verify-format.h')
-rw-r--r-- | verify-format.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/verify-format.h b/verify-format.h new file mode 100644 index 00000000..4a7ef79d --- /dev/null +++ b/verify-format.h @@ -0,0 +1,6 @@ +#ifndef VERIFY_FORMAT_H +#define VERIFY_FORMAT_H + +void verify_format_attribute(struct symbol *fn, struct expression_list *args); + +#endif |