mirror of
https://github.com/nmap/nmap.git
synced 2026-11-21 23:21:06 +00:00
Ensure OSPF header length is reasonable
This commit is contained in:
parent
e7f92e5ade
commit
5fda523bc0
1 changed files with 1 additions and 0 deletions
|
|
@ -248,6 +248,7 @@ OSPF = {
|
|||
local pos = 1
|
||||
lsa_h.age, lsa_h.options, lsa_h.type, lsa_h.id, lsa_h.adv_router,
|
||||
lsa_h.sequence, lsa_h.checksum, lsa_h.length, pos = string.unpack(">I2 BB I4 I4 c4 c2 I2", data, pos)
|
||||
assert(lsa_h.length >= 20)
|
||||
|
||||
lsa_h.id = ipOps.fromdword(lsa_h.id)
|
||||
lsa_h.adv_router = ipOps.fromdword(lsa_h.adv_router)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue