File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -410,6 +410,18 @@ TEST_CASE("deserializeMsgPack() filter") {
410
410
CHECK (doc.as <std::string>() == " {\" include\" :42}" );
411
411
CHECK (doc.memoryUsage () == JSON_OBJECT_SIZE (1 ) + 8 );
412
412
}
413
+
414
+ SECTION (" skip ext 32" ) {
415
+ error = deserializeMsgPack (doc,
416
+ " \x82\xA6 ignore"
417
+ " \xc9\x00\x00\x00\x02\x00\x01\x02 "
418
+ " \xA7 include\x2A " ,
419
+ filterOpt);
420
+
421
+ CHECK (error == DeserializationError::Ok);
422
+ CHECK (doc.as <std::string>() == " {\" include\" :42}" );
423
+ CHECK (doc.memoryUsage () == JSON_OBJECT_SIZE (1 ) + 8 );
424
+ }
413
425
}
414
426
415
427
SECTION (" filter = true" ) {
Original file line number Diff line number Diff line change @@ -215,6 +215,9 @@ class MsgPackDeserializer {
215
215
case 0xc8 : // ext 16
216
216
return skipExt<uint16_t >();
217
217
218
+ case 0xc9 : // ext 32
219
+ return skipExt<uint32_t >();
220
+
218
221
case 0xdc : // array 16
219
222
return skipArray<uint16_t >(nestingLimit);
220
223
You can’t perform that action at this time.
0 commit comments