summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
209fa29)
Was causing infinite loop for
tests/ctf-traces/fail/lttng-modules-2.0-pre1 failure test.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ if ((header.content_size / CHAR_BIT) < header_sizeof(header))
+ return -EINVAL;
+
toread = (header.content_size / CHAR_BIT) - header_sizeof(header);
for (;;) {
toread = (header.content_size / CHAR_BIT) - header_sizeof(header);
for (;;) {