Skip to content

Commit 94313ff

Browse files
authored
fix: update json-c checker (#4995)
Update json-c pattern to avoid raising a false positive with libfastjson due to fjson_tokener_error string Signed-off-by: Fabrice Fontaine <[email protected]>
1 parent d659f9e commit 94313ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cve_bin_tool/checkers/json_c.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ class JsonCChecker(Checker):
2020
VERSION_PATTERNS = [
2121
r"json-c-([0-9]+\.[0-9]+\.?[0-9]*)",
2222
r"([0-9]+\.[0-9]+\.?[0-9]*)\r?\njson-c",
23-
r"([0-9]+\.[0-9]+\.?[0-9]*)[a-zA-Z0-9,% *!_()='+:\"\.\-\\\r\n]*json_tokener_error",
23+
r"([0-9]+\.[0-9]+\.?[0-9]*)[a-zA-Z0-9,% *!_()='+:\"\.\-\\\r\n]* json_tokener_error",
2424
]
2525
VENDOR_PRODUCT = [("json-c", "json-c"), ("json-c_project", "json-c")]

0 commit comments

Comments
 (0)