Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions cve_bin_tool/checkers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
"kexectools",
"kodi",
"kubernetes",
"ldns",
"lftp",
"libarchive",
"libass",
Expand Down
20 changes: 20 additions & 0 deletions cve_bin_tool/checkers/ldns.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright (C) 2023 Orange
# SPDX-License-Identifier: GPL-3.0-or-later


"""
CVE checker for ldns

https://www.cvedetails.com/product/17169/Nlnetlabs-Ldns.html?vendor_id=9613

"""
from __future__ import annotations

from cve_bin_tool.checkers import Checker


class LdnsChecker(Checker):
CONTAINS_PATTERNS: list[str] = []
FILENAME_PATTERNS: list[str] = []
VERSION_PATTERNS = [r"ldns[a-zA-Z0-9_*\)\r\n]*([0-9]+\.[0-9]+\.[0-9]+)"]
VENDOR_PRODUCT = [("nlnetlabs", "ldns")]
Binary file not shown.
Binary file not shown.
Binary file not shown.
30 changes: 30 additions & 0 deletions test/test_data/ldns.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright (C) 2023 Orange
# SPDX-License-Identifier: GPL-3.0-or-later

mapping_test_data = [
{
"product": "ldns",
"version": "4.4.0",
"version_strings": ["ldns_buffer_write_at\n4.4.0"],
}
]
package_test_data = [
{
"url": "http://rpmfind.net/linux/fedora/linux/development/rawhide/Everything/aarch64/os/Packages/l/",
"package_name": "ldns-1.8.3-6.fc38.aarch64.rpm",
"product": "ldns",
"version": "1.8.3",
},
{
"url": "http://ftp.fr.debian.org/debian/pool/main/l/ldns/",
"package_name": "libldns2_1.7.0-4_amd64.deb",
"product": "ldns",
"version": "1.7.0",
},
{
"url": "https://downloads.openwrt.org/releases/packages-19.07/x86_64/packages/",
"package_name": "libldns_1.7.0-5_x86_64.ipk",
"product": "ldns",
"version": "1.7.0",
},
]