@@ -88,6 +88,12 @@ g.test_iproto_insert_arrow_invalid = function(cg)
8888 -- size: 0}}
8989 r = _G .iproto_insert_arrow (' 8210cd020036c70008' )
9090 t .assert_equals (r [box .iproto .key .ERROR_24 ],
91+ ' Invalid MsgPack - packet body' )
92+ t .assert_equals (r [box .iproto .key .ERROR ][0 ][2 ][3 ],
93+ ' Invalid MsgPack - invalid extension' )
94+ t .assert_equals (r [box .iproto .key .ERROR ][0 ][3 ][3 ],
95+ ' Invalid MsgPack - cannot unpack arrow data' )
96+ t .assert_equals (r [box .iproto .key .ERROR ][0 ][4 ][3 ],
9197 ' Arrow decode error: unexpected data size' )
9298 -- <MP_MAP> {
9399 -- IPROTO_SPACE_ID: 512,
@@ -97,6 +103,12 @@ g.test_iproto_insert_arrow_invalid = function(cg)
97103 -- data: [0xde, 0xad, 0xbe, 0xef]}}
98104 r = _G .iproto_insert_arrow (' 8210cd020036c70408deadbeef' )
99105 t .assert_equals (r [box .iproto .key .ERROR_24 ],
106+ ' Invalid MsgPack - packet body' )
107+ t .assert_equals (r [box .iproto .key .ERROR ][0 ][2 ][3 ],
108+ ' Invalid MsgPack - invalid extension' )
109+ t .assert_equals (r [box .iproto .key .ERROR ][0 ][3 ][3 ],
110+ ' Invalid MsgPack - cannot unpack arrow data' )
111+ t .assert_equals (r [box .iproto .key .ERROR ][0 ][4 ][3 ],
100112 ' Arrow decode error: ' ..
101113 ' Expected at least 8 bytes in remainder of stream' )
102114
@@ -107,6 +119,12 @@ g.test_iproto_insert_arrow_invalid = function(cg)
107119 000004000000f0ffffff4000000001000000610000000600080004000c0010000400
108120 080009000c000c000c0000000400000008000a000c00040006000800ffffffff]] )
109121 t .assert_equals (r [box .iproto .key .ERROR_24 ],
122+ ' Invalid MsgPack - packet body' )
123+ t .assert_equals (r [box .iproto .key .ERROR ][0 ][2 ][3 ],
124+ ' Invalid MsgPack - invalid extension' )
125+ t .assert_equals (r [box .iproto .key .ERROR ][0 ][3 ][3 ],
126+ ' Invalid MsgPack - cannot unpack arrow data' )
127+ t .assert_equals (r [box .iproto .key .ERROR ][0 ][4 ][3 ],
110128 ' Arrow decode error: ' ..
111129 ' Expected at least 8 bytes in remainder of stream' )
112130
0 commit comments