Skip to content

Commit

Permalink
feat(bacnetip): avoid panic on garbage data
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Sep 13, 2024
1 parent b5ed1ac commit 46fa163
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plc4go/protocols/bacnetip/readwrite/model/NPDU.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
[type NPDU(uint 16 npduLength)
[simple uint 8 protocolVersionNumber ]
[simple NPDUControl control ]
[validation 'control != null' "control required for further processing" ]
[optional uint 16 destinationNetworkAddress 'control.destinationSpecified' ]
[optional uint 8 destinationLength 'control.destinationSpecified' ]
[array uint 8 destinationAddress count 'control.destinationSpecified ? destinationLength : 0' ]
Expand Down

0 comments on commit 46fa163

Please sign in to comment.