Getting bytestring length from other structure leads to infinite loop in some cases.

Description

Getting bytestring length from other structure leads to infinite loop in some cases.

To parse "payload" field Binpac yields:

instead of

After this line

Binpac will run into infinite loop because

will always return false if the total size of a message is less than 18 bytes.

Workaround:

Environment

Linux 4.2.0-38 x64

Assignee

Unassigned

Reporter

random-user

Labels

External issue ID

None

Components

Affects versions

Priority

Normal
Configure