Skip to content
Snippets Groups Projects
Commit 4ae67658 authored by Timmy Chan's avatar Timmy Chan
Browse files

Fix no kernel version detected

parent 59b8bd1e
No related branches found
No related tags found
1 merge request!5Feat/cve linux kernel
......@@ -13,7 +13,11 @@ def qemu_vm_setup(vuln, app_path, vuln_type):
kernel_version = None
version_list = regex_find_all_version_strings(description)
if len(version_list) == 1:
if len(version_list) == 0:
print("There are no version numbers explicitly mentioned in the vulnerability description.")
print("Retry using EDB id instead or build manually")
elif len(version_list) == 1:
# If only one version number found, use it as kernel version number.
valid_version_number = get_kernel_release_number(version_list[0])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment