diff options
author | Aleksander Morgado <aleksandermj@chromium.org> | 2022-09-23 15:38:25 +0000 |
---|---|---|
committer | Aleksander Morgado <aleksandermj@chromium.org> | 2022-09-23 15:47:26 +0000 |
commit | 29c8723e68f959b5efe9da572e0a2ad86fb6953d (patch) | |
tree | 8dda9064a70dfefe7e322e1a135a3f894282ff68 | |
parent | a1cf6c31d5e5de52a2983464b40e92c4866f8009 (diff) |
libmbim-glib,test-message-parser: fix incorrect message/buffer lengths
-rw-r--r-- | src/libmbim-glib/test/test-message-parser.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/libmbim-glib/test/test-message-parser.c b/src/libmbim-glib/test/test-message-parser.c index 585f6a7..13e241c 100644 --- a/src/libmbim-glib/test/test-message-parser.c +++ b/src/libmbim-glib/test/test-message-parser.c @@ -882,7 +882,7 @@ test_sms_read_zero_pdu (void) const guint8 buffer [] = { /* header */ 0x03, 0x00, 0x00, 0x80, /* type */ - 0xB0, 0x00, 0x00, 0x00, /* length */ + 0x38, 0x00, 0x00, 0x00, /* length */ 0x02, 0x00, 0x00, 0x00, /* transaction id */ /* fragment header */ 0x01, 0x00, 0x00, 0x00, /* total */ @@ -894,7 +894,7 @@ test_sms_read_zero_pdu (void) 0x23, 0xE5, 0x6C, 0x3F, 0x02, 0x00, 0x00, 0x00, /* command id */ 0x00, 0x00, 0x00, 0x00, /* status code */ - 0x38, 0x00, 0x00, 0x00, /* buffer length */ + 0x08, 0x00, 0x00, 0x00, /* buffer length */ /* information buffer */ 0x00, 0x00, 0x00, 0x00, /* 0x00 format */ 0x00, 0x00, 0x00, 0x00, /* 0x04 messages count */ @@ -931,7 +931,7 @@ test_sms_read_single_pdu (void) const guint8 buffer [] = { /* header */ 0x03, 0x00, 0x00, 0x80, /* type */ - 0xB0, 0x00, 0x00, 0x00, /* length */ + 0x60, 0x00, 0x00, 0x00, /* length */ 0x02, 0x00, 0x00, 0x00, /* transaction id */ /* fragment header */ 0x01, 0x00, 0x00, 0x00, /* total */ @@ -943,7 +943,7 @@ test_sms_read_single_pdu (void) 0x23, 0xE5, 0x6C, 0x3F, 0x02, 0x00, 0x00, 0x00, /* command id */ 0x00, 0x00, 0x00, 0x00, /* status code */ - 0x60, 0x00, 0x00, 0x00, /* buffer length */ + 0x30, 0x00, 0x00, 0x00, /* buffer length */ /* information buffer */ 0x00, 0x00, 0x00, 0x00, /* 0x00 format */ 0x01, 0x00, 0x00, 0x00, /* 0x04 messages count */ @@ -1009,7 +1009,7 @@ test_sms_read_multiple_pdu (void) const guint8 buffer [] = { /* header */ 0x03, 0x00, 0x00, 0x80, /* type */ - 0xB0, 0x00, 0x00, 0x00, /* length */ + 0x88, 0x00, 0x00, 0x00, /* length */ 0x02, 0x00, 0x00, 0x00, /* transaction id */ /* fragment header */ 0x01, 0x00, 0x00, 0x00, /* total */ @@ -1021,7 +1021,7 @@ test_sms_read_multiple_pdu (void) 0x23, 0xE5, 0x6C, 0x3F, 0x02, 0x00, 0x00, 0x00, /* command id */ 0x00, 0x00, 0x00, 0x00, /* status code */ - 0x60, 0x00, 0x00, 0x00, /* buffer length */ + 0x58, 0x00, 0x00, 0x00, /* buffer length */ /* information buffer */ 0x00, 0x00, 0x00, 0x00, /* 0x00 format */ 0x02, 0x00, 0x00, 0x00, /* 0x04 messages count */ @@ -1379,7 +1379,7 @@ test_stk_pac_response (void) const guint8 buffer [] = { /* header */ 0x03, 0x00, 0x00, 0x80, /* type */ - 0x2C, 0x01, 0x00, 0x00, /* length */ + 0x30, 0x01, 0x00, 0x00, /* length */ 0x02, 0x00, 0x00, 0x00, /* transaction id */ /* fragment header */ 0x01, 0x00, 0x00, 0x00, /* total */ @@ -1554,7 +1554,7 @@ test_stk_terminal_response (void) const guint8 buffer [] = { /* header */ 0x03, 0x00, 0x00, 0x80, /* type */ - 0x48, 0x01, 0x00, 0x00, /* length */ + 0x48, 0x00, 0x00, 0x00, /* length */ 0x02, 0x00, 0x00, 0x00, /* transaction id */ /* fragment header */ 0x01, 0x00, 0x00, 0x00, /* total */ @@ -1614,7 +1614,7 @@ test_stk_envelope_response (void) const guint8 buffer [] = { /* header */ 0x03, 0x00, 0x00, 0x80, /* type */ - 0x50, 0x01, 0x00, 0x00, /* length */ + 0x50, 0x00, 0x00, 0x00, /* length */ 0x02, 0x00, 0x00, 0x00, /* transaction id */ /* fragment header */ 0x01, 0x00, 0x00, 0x00, /* total */ @@ -1677,7 +1677,7 @@ test_basic_connect_ip_packet_filters_none (void) const guint8 buffer [] = { /* header */ 0x03, 0x00, 0x00, 0x80, /* type */ - 0x38, 0x01, 0x00, 0x00, /* length */ + 0x38, 0x00, 0x00, 0x00, /* length */ 0x02, 0x00, 0x00, 0x00, /* transaction id */ /* fragment header */ 0x01, 0x00, 0x00, 0x00, /* total */ @@ -1723,7 +1723,7 @@ test_basic_connect_ip_packet_filters_one (void) const guint8 buffer [] = { /* header */ 0x03, 0x00, 0x00, 0x80, /* type */ - 0x5C, 0x01, 0x00, 0x00, /* length */ + 0x5C, 0x00, 0x00, 0x00, /* length */ 0x02, 0x00, 0x00, 0x00, /* transaction id */ /* fragment header */ 0x01, 0x00, 0x00, 0x00, /* total */ @@ -1800,7 +1800,7 @@ test_basic_connect_ip_packet_filters_two (void) const guint8 buffer [] = { /* header */ 0x03, 0x00, 0x00, 0x80, /* type */ - 0x88, 0x01, 0x00, 0x00, /* length */ + 0x88, 0x00, 0x00, 0x00, /* length */ 0x02, 0x00, 0x00, 0x00, /* transaction id */ /* fragment header */ 0x01, 0x00, 0x00, 0x00, /* total */ |