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)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 2 May 2019 04:09:19 +0000 (00:09 -0400)
commit743f28fbbbdd8a6a3802f67d42331a3b26f82ed3
treeb78215276e78fb51f68616e52f135a1e4387f1db
parent9a84c056bc891d22e4170c979e3a9d66ba313a19
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.025794 seconds and 5 git commands to generate.