google / flatbuffers

FlatBuffers: Memory Efficient Serialization Library
https://flatbuffers.dev/
Apache License 2.0
23.17k stars 3.24k forks source link

GOLANG: Add bounds-checked decoding functions #8243

Closed ricardonunez-io closed 7 months ago

ricardonunez-io commented 7 months ago

"Safe"-prepended "Get" decoding functions in the Go package include bounds checking to avoid panics for situations where safety from untrusted inputs is critical and performance isn't as necessary.

Does not modify existing functions, simply adds 15 new functions for each type of decoding available in go/encode.go.

Does not include safety measures for decoding strings.

google-cla[bot] commented 7 months ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.