Skip to content

Commit 4c6fdab

Browse files
feat(checker): Detect Python 3.12.x.
1 parent 45b9ec3 commit 4c6fdab

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

cve_bin_tool/checkers/python.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class PythonChecker(Checker):
1919
]
2020
FILENAME_PATTERNS = [r"python"]
2121
VERSION_PATTERNS = [
22+
r"src\\python[23]\\Python-([23]+\.[0-9]+\.[0-9]+)",
2223
r"python(?:[23]+\.[0-9]+)-([23]+\.[0-9]+\.[0-9]+)",
2324
r"pymalloc_debug\r?\n([23]+\.[0-9]+\.[0-9]+)",
2425
r"([23]+\.[0-9]+\.[0-9]+)\r?\nPython %s",

test/test_data/python.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
"version": "3.10.9",
2828
"version_strings": ["3.10.9\n%.80s (%.80s) %.80s"],
2929
},
30+
{
31+
"product": "python",
32+
"version": "3.12.8",
33+
"version_strings": ["C:\\omnibus-ruby\\src\\python3\\Python-3.12.8\\PCbuild\\amd64\\pythonw.pdb"],
34+
},
3035
]
3136
package_test_data = [
3237
{

0 commit comments

Comments
 (0)