AMQP 1.0: 'char' should be 4-bytes UTF32

Change-Id: I219b65fd989e1811eda9e2b7197148e6b22ef97a
Reviewed-on: https://code.wireshark.org/review/8887
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
This commit is contained in:
Petr Gotthard 2015-06-11 22:30:58 -07:00 committed by Pascal Quantin
parent f0c0081673
commit 74421b35c2
1 changed files with 3 additions and 2 deletions

View File

@ -10950,8 +10950,9 @@ format_amqp_1_0_char(tvbuff_t *tvb,
guint offset, guint bound _U_, guint length _U_,
const char **value)
{
*value = tvb_format_text(tvb, offset, 1);
return 1;
/* one UTF-32BE encoded Unicode character */
*value = tvb_get_string_enc(wmem_packet_scope(), tvb, offset, 4, ENC_UCS_4|ENC_BIG_ENDIAN);
return 4;
}
static int