[LTP] [PATCH 1/2] tools/sparse-ltp: Check all struct arrays in tst_test for ending {}

Richard Palethorpe rpalethorpe@suse.de
Tue Mar 15 13:53:54 CET 2022


Hello Petr,

Petr Vorel <pvorel@suse.cz> writes:

> Hi Richie,
>
>> Check for null termination on tst_test.save_restore and all the other
>> struct arrays in tst_test. They are all null terminated.
>
>> Also prevents a segfault when scalar NULL is used as the final entry
>> and print a helpful error message instead.
>
> thanks for this! LGTM.
> Reviewed-by: Petr Vorel <pvorel@suse.cz>
>
> Kind regards,
> Petr

Thanks merged!

-- 
Thank you,
Richard.


More information about the ltp mailing list