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)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 3 May 2019 22:19:39 +0000 (18:19 -0400)
commitcf19c159bd9f67321e73367982cd5aa977457cbb
tree1c360e18c015f929b5e7ee34bb8f280a271d77ec
parent69851fffedf3e4a5fa2e24ba4366d56037bf0980
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.024266 seconds and 4 git commands to generate.