mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
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…
x
Reference in New Issue
Block a user