Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
the modeling file help to avoid false positives and increase scanning accuracy by explaining code Coverity can't see (out of tree libraries); the model file must be uploaded by an admin to: https://scan.coverity.com/projects/pulseaudio?tab=analysis_settings the pa_assert_se() macro needs to be rewritten for Coverity so that the assignment is not declared a side-effect Signed-off-by: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* Coverity Scan model | ||
* Copyright (C) 2017 Peter Meerwald-Stadler <pmeerw@pmeerw.net> | ||
* | ||
* This is a modeling file for Coverity Scan which helps to avoid false | ||
* positives and increase scanning accuracy by explaining code Coverity | ||
* can't see (out of tree libraries); the model file must be uploaded by | ||
* an admin to: | ||
* https://scan.coverity.com/projects/pulseaudio?tab=analysis_settings | ||
*/ | ||
|
||
void fail(void) { | ||
__coverity_panic__(); | ||
} | ||
|
||
void fail_unless(int x) { | ||
if (!x) | ||
__coverity_panic__(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters