forked from Archive/PX4-Autopilot
tinybson: add more error output on node name overflow
This commit is contained in:
parent
47d6a6c63d
commit
e694fa906b
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue