[LTP] [PATCH v2] tst_kconfig: Avoid reporting buffer overflow when parsing /proc/cmdline

Petr Vorel pvorel@suse.cz
Fri Jun 21 14:47:38 CEST 2024


> Hi Petr, All,


> > I'll add macros to my TODO list, working on it sometimes during July.


> The tricky part may be for TFAIL (TBROK) to distinguish from TERRNO or
> TTERRNO in one macro.

>   tst_res(TFAIL, " ")
>   tst_res(TFAIL | TTERRNO, " ")
>   tst_res(TFAIL | TERRNO, " ");

> I haven't got a better idea unless we allow creating more macros like:

>  TST_RES_TFAIL()
>  TST_RES_TFAIL_TTERRNO()
>  TST_RES_TFAIL_TERRNO()

> But TBH, this looks a bit messy and not good for memories.

Yeah :(. And I don't see any good name either.

Kind regards,
Petr


More information about the ltp mailing list