mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 13:11:28 +00:00
Force numeric values to string to avoid assertion in tab.lua. Related #266
This commit is contained in:
@@ -214,7 +214,7 @@ function add_file(output, file)
|
|||||||
local curvol = output.curvol
|
local curvol = output.curvol
|
||||||
local files = curvol["files"]
|
local files = curvol["files"]
|
||||||
for i, info in ipairs(file) do
|
for i, info in ipairs(file) do
|
||||||
tab.add(files, i, info)
|
tab.add(files, i, tostring(info))
|
||||||
end
|
end
|
||||||
local size = get_size(file[curvol.hasperms and 4 or 1])
|
local size = get_size(file[curvol.hasperms and 4 or 1])
|
||||||
if size then
|
if size then
|
||||||
|
|||||||
Reference in New Issue
Block a user