mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 05:53:34 +08:00
tinybson: add more error output on node name overflow
This commit is contained in:
@@ -239,6 +239,7 @@ bson_decoder_next(bson_decoder_t decoder)
|
|||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
if (nlen >= BSON_MAXNAME) {
|
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");
|
CODER_KILL(decoder, "node name overflow");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user