bej_decoder_json: Add a limit on # of 0s in "real"

We have count the number of 0s in real numbers to add to the output
string. To prevent OOM from many 0s, add a limit.

Tested: Add unit test

Change-Id: I5e298554cf9d93b3f7ab86cac5b0b0a6f443716b
Signed-off-by: Brandon Kim <brandonkim@google.com>
2 files changed
tree: d3eb56fb6c8a993b6f72bfde7e49851476438f5b
  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.