awcullen / opcua

OPC Unified Architecture (OPC UA) in Go.
MIT License
81 stars 18 forks source link

secure channel: make sure array bound are not out of range #22

Closed bearsh closed 1 year ago

bearsh commented 1 year ago

count may be an arbitrary number, therefor do not access the slice without checking.

Closes: https://github.com/awcullen/opcua/issues/21

awcullen commented 1 year ago

Thanks @bearsh for solution. I shall scan for similar issues.