1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-26 01:19:03 +00:00

Use explicit endianness in pack/unpack.

This commit is contained in:
dmiller
2017-02-14 03:47:49 +00:00
parent 2f104650a8
commit f20589ca09
13 changed files with 30 additions and 19 deletions

View File

@@ -3121,7 +3121,7 @@ Auth = {
local c = bit.bxor( string.byte( i ), xormask )
local m1= bit.band( bit.rshift( c, 4 ), 0x0F0F )
local m2= bit.band( bit.lshift( c, 4 ), 0xF0F0 )
return bin.pack("S", bit.bor( m1, m2 ) )
return bin.pack("<S", bit.bor( m1, m2 ) )
end)
end,