This file is indexed.

/usr/share/lua/5.1/luassert/formatters/binarystring.lua is in lua-luassert 1.7.10-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
local format = function (str)
  if type(str) ~= "string" then return nil end
  local result = "Binary string length; " .. tostring(#str) .. " bytes\n"
  local i = 1
  local hex = ""
  local chr = ""
  while i <= #str do
    local byte = str:byte(i)
    hex = string.format("%s%2x ", hex, byte)
    if byte < 32 then byte = string.byte(".") end
    chr = chr .. string.char(byte)
    if math.floor(i/16) == i/16 or i == #str then
      -- reached end of line
      hex = hex .. string.rep(" ", 16 * 3 - #hex)
      chr = chr .. string.rep(" ", 16 - #chr)

      result = result .. hex:sub(1, 8 * 3) .. "  " .. hex:sub(8*3+1, -1) .. " " .. chr:sub(1,8) .. " " .. chr:sub(9,-1) .. "\n"

      hex = ""
      chr = ""
    end
    i = i + 1
  end
  return result
end

return format