tinybson: add more error output on node name overflow

This commit is contained in:
Daniel Agar 2021-12-23 14:19:02 -05:00
parent 47d6a6c63d
commit e694fa906b
1 changed files with 1 additions and 0 deletions

View File

@ -239,6 +239,7 @@ bson_decoder_next(bson_decoder_t decoder)
for (;;) {
if (nlen >= BSON_MAXNAME) {
PX4_ERR("node name overflow, type:0x%02x, name:%.32s", decoder->node.type, decoder->node.name);
CODER_KILL(decoder, "node name overflow");
}