mirror of
https://github.com/lubosz/overte.git
synced 2025-04-10 04:28:59 +02:00
Tweak limits; add comment
This commit is contained in:
parent
a5c2ce472e
commit
d2e9abd72c
1 changed files with 4 additions and 1 deletions
|
@ -313,7 +313,10 @@ function p_hfudt.dissector(buf, pinfo, tree)
|
|||
|
||||
-- check if we have part of a message that we need to re-assemble
|
||||
-- before it can be dissected
|
||||
if message_bit == 1 and message_position ~= 0 and message_number < 50 and message_part_number < 10 then
|
||||
-- limit array indices to prevent lock-up with arbitrary data
|
||||
if message_bit == 1 and message_position ~= 0 and message_number < 100
|
||||
and message_part_number < 100 then
|
||||
|
||||
if fragments[message_number] == nil then
|
||||
fragments[message_number] = {}
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue