Commit 9d2b4e5c authored by Leo's avatar Leo

fix(secfixes-check): pass the split string not the full line

also make a violation for having a security identifier we don't know
parent 41c80271
Pipeline #12308 passed with stage
in 43 seconds
......@@ -271,9 +271,11 @@ local function main(arg)
for splitv in string.gmatch(v, "[^ ]+") do
if splitv:match("^CVE") then
checkCVE(v, k)
checkCVE(splitv, k)
elseif splitv:match("^GNUTLS%-SA") then
checkGNUTLS(v, k)
checkGNUTLS(splitv, k)
violation("unknown security identifier '"..splitv.."'", k, "52", "SC")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment