From: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
To: linux-sparse@vger.kernel.org
Cc: Chris Li <sparse@chrisli.org>,
Ramsay Jones <ramsay@ramsayjones.plus.com>,
Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Subject: [PATCH 0/3] -Wmemcpy-max-count & friends
Date: Sat, 3 Jun 2017 09:47:24 +0200 [thread overview]
Message-ID: <20170603074727.66945-1-luc.vanoostenryck@gmail.com> (raw)
sparse will warn if memcpy() (and some others memcpy-like
functions) is called with a very large static byte count.
But this warning cannot be disabled and the limit is arbitrary
fixed at 100000.
The goal of this series is to allow to disable this warning if
found too bothersome or to allow to configure its limit.
Changes since v1:
- take in account Ramsay's remarks and suggestion:
- fix some name mixups in the man page & commit message
- use a limit of 0 as being equivalent to an infinite
limit, effectively disabling the warning.
- somewhat rewrote the man page for -fmemcpy-max-count
- extend the limit's range
The series can also be found on the tree:
git://github.com/lucvoo/sparse.git memcpy-max-count-v2
Luc Van Oostenryck (3):
memcpy()'s byte count is unsigned
add support for -Wmemcpy-max-count
add support for -fmemcpy-max-count
lib.c | 20 ++++++++++++++++++++
lib.h | 2 ++
sparse.1 | 17 +++++++++++++++++
sparse.c | 6 +++---
4 files changed, 42 insertions(+), 3 deletions(-)
--
2.13.0
next reply other threads:[~2017-06-03 7:47 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-03 7:47 Luc Van Oostenryck [this message]
2017-06-03 7:47 ` [PATCH v2 1/3] memcpy()'s byte count is unsigned Luc Van Oostenryck
2017-06-05 20:52 ` Christopher Li
2017-06-05 22:16 ` Luc Van Oostenryck
2017-06-06 1:26 ` Christopher Li
2017-06-05 22:20 ` [PATCH v2 0/3] -Wmemcpy-max-count & friends Luc Van Oostenryck
2017-06-03 7:47 ` [PATCH v2 2/3] add support for -Wmemcpy-max-count Luc Van Oostenryck
2017-06-03 7:47 ` [PATCH v2 3/3] add support for -fmemcpy-max-count Luc Van Oostenryck
2017-06-03 13:23 ` [PATCH 0/3] -Wmemcpy-max-count & friends Ramsay Jones
2017-06-06 1:39 ` Christopher Li
-- strict thread matches above, loose matches on Subject: below --
2017-05-23 20:47 [PATCH] usage: add NORETURN to BUG() function definitions Ramsay Jones
2017-06-01 20:27 ` [PATCH 0/3] -Wmemcpy-max-count & friends Luc Van Oostenryck
2017-06-02 0:11 ` Ramsay Jones
2017-06-02 0:26 ` Luc Van Oostenryck
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=20170603074727.66945-1-luc.vanoostenryck@gmail.com \
--to=luc.vanoostenryck@gmail.com \
--cc=linux-sparse@vger.kernel.org \
--cc=ramsay@ramsayjones.plus.com \
--cc=sparse@chrisli.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.