summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-06-05 10:15:15 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2017-06-05 10:15:15 +0200
commit5ff6f086c1f930f6d503596bdb259c84324fc8cd (patch)
tree6699b5944d7861c21942258be0c9ab1bbb943742
parentf3c5b1fea07633c13768fe728a1b80d9265615f7 (diff)
downloadalpine-secdb-5ff6f086c1f930f6d503596bdb259c84324fc8cd.tar.bz2
alpine-secdb-5ff6f086c1f930f6d503596bdb259c84324fc8cd.tar.xz
secfixes.lua: verify that we have an array of CVEs
-rw-r--r--secfixes.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/secfixes.lua b/secfixes.lua
index 76e73b7..fa2aab2 100644
--- a/secfixes.lua
+++ b/secfixes.lua
@@ -53,6 +53,7 @@ function verify_yaml(file)
for k,v in pairs(p.pkg.secfixes) do
assert(type(k) == "string", file..": "..p.pkg.name..": not a string: "..tostring(k))
assert(string.match(k, "^[0-9]+"))
+ assert(type(v) == "table", file..": "..p.pkg.name..": "..k..": not a table")
end
end