Commit 97fef60
committed
Convert array from AMQP 1.0 to AMQP 0.9.1
Fix the following crash when an AMQP 0.9.1 client consumes an AMQP 1.0
encoded message that contains an array value in message annotations:
```
crasher:
initial call: rabbit_channel:init/1
pid: <0.685.0>
registered_name: []
exception exit: {function_clause,
[{mc_amqpl,to_091,
[<<"x-array">>,
{array,utf8,[{utf8,<<"e1">>},{utf8,<<"e2">>}]}],
[{file,"mc_amqpl.erl"},{line,737}]},
{mc_amqpl,'-convert_from/3-fun-3-',1,
[{file,"mc_amqpl.erl"},{line,168}]},
{lists,filtermap_1,2,
[{file,"lists.erl"},{line,2279}]},
{mc_amqpl,convert_from,3,
[{file,"mc_amqpl.erl"},{line,158}]},
{mc,convert,3,[{file,"mc.erl"},{line,332}]},
{rabbit_channel,handle_deliver0,4,
[{file,"rabbit_channel.erl"},{line,2619}]},
{lists,foldl_1,3,[{file,"lists.erl"},{line,2151}]},
{lists,foldl,3,[{file,"lists.erl"},{line,2146}]}]}
```1 parent d7c4e94 commit 97fef60
File tree
3 files changed
+24
-3
lines changed- deps/rabbit
- src
- test
3 files changed
+24
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
754 | 754 | | |
755 | 755 | | |
756 | 756 | | |
757 | | - | |
| 757 | + | |
758 | 758 | | |
759 | | - | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
760 | 765 | | |
761 | 766 | | |
762 | 767 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1339 | 1339 | | |
1340 | 1340 | | |
1341 | 1341 | | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
1342 | 1349 | | |
1343 | 1350 | | |
1344 | 1351 | | |
| |||
1418 | 1425 | | |
1419 | 1426 | | |
1420 | 1427 | | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
1421 | 1435 | | |
1422 | 1436 | | |
1423 | 1437 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
535 | | - | |
| 535 | + | |
| 536 | + | |
536 | 537 | | |
537 | 538 | | |
538 | 539 | | |
| |||
598 | 599 | | |
599 | 600 | | |
600 | 601 | | |
| 602 | + | |
601 | 603 | | |
602 | 604 | | |
603 | 605 | | |
| |||
0 commit comments