linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Jonathan Cameron <jic23@kernel.org>
Cc: Brian Masney <masneyb@onstation.org>, linux-iio@vger.kernel.org
Subject: [PATCH v2 0/2] iio: Use scnprintf() for avoiding potential buffer overflow
Date: Mon, 16 Mar 2020 13:49:39 +0100	[thread overview]
Message-ID: <20200316124941.8010-1-tiwai@suse.de> (raw)

Hi,

here is a respin of the trivial patchset to replace snprintf() calls
with the safer scnprintf() calls for avoiding potential buffer
overflows.

v1->v2: Fix the snprintf() buffer limit argument in tsl2772
	Rephrase the changelog


Takashi

===

Takashi Iwai (2):
  iio: core: Use scnprintf() for avoiding potential buffer overflow
  iio: tsl2772: Use scnprintf() for avoiding potential buffer overflow

 drivers/iio/industrialio-core.c | 34 +++++++++++++++++-----------------
 drivers/iio/light/tsl2772.c     |  6 +++---
 2 files changed, 20 insertions(+), 20 deletions(-)

-- 
2.16.4


             reply	other threads:[~2020-03-16 12:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-16 12:49 Takashi Iwai [this message]
2020-03-16 12:49 ` [PATCH v2 1/2] iio: core: Use scnprintf() for avoiding potential buffer overflow Takashi Iwai
2020-03-16 16:19   ` Brian Masney
2020-03-22 18:06     ` Jonathan Cameron
2020-03-16 12:49 ` [PATCH v2 2/2] iio: tsl2772: " Takashi Iwai
2020-03-16 16:20   ` Brian Masney
2020-03-22 18:08     ` Jonathan Cameron

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=20200316124941.8010-1-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=jic23@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=masneyb@onstation.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 NNTP newsgroup(s).