public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: Li Wang <liwang@redhat.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v2] tst_kconfig: Avoid reporting buffer overflow when parsing /proc/cmdline
Date: Fri, 21 Jun 2024 14:47:38 +0200	[thread overview]
Message-ID: <20240621124738.GA689389@pevik> (raw)
In-Reply-To: <CAEemH2fJ3MweAWbAy1yatfHE1KNK=NJLv8w3RVsnAJtJ+K-k+w@mail.gmail.com>

> 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

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

      reply	other threads:[~2024-06-21 12:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-20  2:16 [LTP] [PATCH v2] tst_kconfig: Avoid reporting buffer overflow when parsing /proc/cmdline Li Wang
2024-06-20  2:37 ` Li Wang
2024-06-20  5:21   ` Petr Vorel
2024-06-20  8:20     ` Li Wang
2024-06-21  9:12       ` Li Wang
2024-06-21 11:03         ` Petr Vorel
2024-06-21 12:05           ` Li Wang
2024-06-21 12:47             ` Petr Vorel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240621124738.GA689389@pevik \
    --to=pvorel@suse.cz \
    --cc=liwang@redhat.com \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox