Add out-of-bound checks
[babeltrace.git] / formats / ctf / types / sequence.c
index 1f36a49f851e33b1b3b3764e91742ca25921488b..acd4c7c0fca8310efc5bc890283525122d533fa1 100644 (file)
 
 #include <babeltrace/ctf/types.h>
 
-void ctf_sequence_rw(struct stream_pos *ppos, struct definition *definition)
+int ctf_sequence_rw(struct stream_pos *ppos, struct definition *definition)
 {
        struct declaration *declaration = definition->declaration;
        struct ctf_stream_pos *pos = ctf_pos(ppos);
 
        ctf_align_pos(pos, declaration->alignment);
-       sequence_rw(ppos, definition);
+       return sequence_rw(ppos, definition);
 }
This page took 0.023287 seconds and 4 git commands to generate.