mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
Update coverity model
`uu_panic()` needs to be modelled and the definition of `vpanic()` from the original coverity model was missing `__coverity_format_string_sink__()`. We also model `libspl_assertf()` as part of an attempt to eliminate false positives. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Closes #13901
This commit is contained in:
parent
1b6f3368dd
commit
8da218a7a2
@ -70,9 +70,24 @@ panic(const char *fmt, ...)
|
||||
void
|
||||
vpanic(const char *fmt, va_list adx)
|
||||
{
|
||||
(void) fmt;
|
||||
(void) adx;
|
||||
|
||||
__coverity_format_string_sink__(fmt);
|
||||
__coverity_panic__();
|
||||
}
|
||||
|
||||
void
|
||||
uu_panic(const char *format, ...)
|
||||
{
|
||||
__coverity_format_string_sink__(format);
|
||||
__coverity_panic__();
|
||||
}
|
||||
|
||||
int
|
||||
libspl_assertf(const char *file, const char *func, int line,
|
||||
const char *format, ...)
|
||||
{
|
||||
__coverity_format_string_sink__(format);
|
||||
__coverity_panic__();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user