Fix: msg-iter.c: accept no packet total and content sizes
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Sun, 7 Apr 2019 02:16:36 +0000 (22:16 -0400)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 2 May 2019 20:50:15 +0000 (20:50 +0000)
commit9067de2beaeb4304940676c2d216827915dbc0ea
treeb78215276e78fb51f68616e52f135a1e4387f1db
parent51f4c026e1d2102f30a08c756aa19d1bd02e926b
Fix: msg-iter.c: accept no packet total and content sizes

This changes an assertion in set_current_packet_content_sizes() to check
that either both the packet and content sizes are set (one can be set
from the other) or both are unset.

It's okay that both total and content sizes are unset: the data decoder
is already implemented to end the packet when the medium returns
`BT_MSG_ITER_MEDIUM_STATUS_EOF`.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
plugins/ctf/common/msg-iter/msg-iter.c
This page took 0.025475 seconds and 4 git commands to generate.