Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improved coverage for varnish #601

Merged
merged 4 commits into from
Apr 28, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions test/binaries/test-VARNISH-4.1.1.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include <stdio.h>

int main() {
printf("This program is designed to test the cve-bin-tool checker.");
printf("It outputs a few strings normally associated with varnish_4.1.1");
printf("They appear below this line.");
printf("------------------");
printf("varnish-4.1.1");

return 0;
}
15 changes: 15 additions & 0 deletions test/test_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1034,6 +1034,21 @@ def _file_test(self, url, filename, package, version):
"CVE-2013-0345",
],
),
(
"test-VARNISH-4.1.1.out",
terriko marked this conversation as resolved.
Show resolved Hide resolved
"varnish",
"4.1.1",
[
# Check for known cves in this version
"CVE-2017-12425",
"CVE-2017-8807",
],
[
# Check to make sure an older CVE isn't included
"CVE-2013-4484",
"CVE-2013-0345",
],
),
(
"test-binutils-2.31.1.out",
"binutils",
Expand Down