Check SFLV tuple is within stream before decoding

If the SFLV tuple being decoded goes out of the stream length
it could lead to a heap overflow. This patch adds a check to
prevent it.

Tested:
Unit tested

Signed-off-by: Kasun Athukorala <kasunath@google.com>
Change-Id: Ie018d4f3614603efc6ed8b93fa0077c612d9b481
2 files changed
tree: b48d2ff73542fb5844393b39d905a8d961ae17a6
  1. include/
  2. src/
  3. subprojects/
  4. test/
  5. .clang-format
  6. .clang-tidy
  7. .gitignore
  8. LICENSE
  9. MAINTAINERS
  10. meson.build
  11. meson.options
  12. OWNERS
  13. README.md
README.md

libbej

This library can be used to decode RDE bej data. More details on how to use the library will be added in the future.