smatch.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@oracle.com>
To: Harshvardhan Jha <harshvardhan.jha@oracle.com>
Cc: smatch@vger.kernel.org
Subject: Re: [PATCH] check_do_while_loop_limit: implements checker for do_while loops
Date: Tue, 27 Jul 2021 12:39:36 +0300	[thread overview]
Message-ID: <20210727093936.GK1931@kadam> (raw)
In-Reply-To: <20210726135412.8209-1-harshvardhan.jha@oracle.com>

On Mon, Jul 26, 2021 at 07:24:12PM +0530, Harshvardhan Jha wrote:
> do{} while(n--) loops end at n=-1 but programmers sometimes assume that
> they end at n=0. This checker sends a warning in these scenarios.
> 
> Signed-off-by: Harshvardhan Jha <harshvardhan.jha@oracle.com>

Thanks a lot!  Applied.

regards,
dan carpenter

  reply	other threads:[~2021-07-27  9:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-26 13:54 [PATCH] check_do_while_loop_limit: implements checker for do_while loops Harshvardhan Jha
2021-07-27  9:39 ` Dan Carpenter [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-07-26 13:43 Harshvardhan Jha
2021-07-26 13:50 ` Dan Carpenter

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=20210727093936.GK1931@kadam \
    --to=dan.carpenter@oracle.com \
    --cc=harshvardhan.jha@oracle.com \
    --cc=smatch@vger.kernel.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).