On Fri, Sep 23, 2022 at 12:30:14PM -0400, Steven Rostedt wrote: > From: "Steven Rostedt (Google)" <rostedt@xxxxxxxxxxx> > > It appears that my compiler version did not notice that "field_size" > passed to check_data_offset_size() in the TEP_PRINT_DYNAMIC_ARRAY case was > not initialized. But other compilers do. > > Since this case we just want to make sure the offset is not passed the end > of the event data, we can simply pass in zero. > > Fixes: efd32896dd5db ("libtraceevent: Add warnings if fields are outside the event") > Reported-by: Ross Zwisler <zwisler@xxxxxxxxxx> > Signed-off-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx> Reviewed-by: Ross Zwisler <zwisler@xxxxxxxxxx>