netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Roman Mashak <mrv@mojatatu.com>
Cc: netdev@vger.kernel.org, jhs@mojatatu.com
Subject: Re: [PATCH iproute2 v2 1/1] ip netns: use strtol() instead of atoi()
Date: Wed, 1 Nov 2017 22:06:41 +0100	[thread overview]
Message-ID: <20171101220641.2b710a94@shemminger-XPS-13-9360> (raw)
In-Reply-To: <1509474259-9988-1-git-send-email-mrv@mojatatu.com>

On Tue, 31 Oct 2017 14:24:19 -0400
Roman Mashak <mrv@mojatatu.com> wrote:

> Use strtol-based API to parse and validate integer input; atoi() does
> not detect errors and may yield undefined behaviour if result can't be
> represented.
> 
> v2: use get_unsigned() since network namespace is really an unsigned value.
> 
> Signed-off-by: Roman Mashak <mrv@mojatatu.com>

Applied. Thanks Roman

      reply	other threads:[~2017-11-01 21:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-31 18:24 [PATCH iproute2 v2 1/1] ip netns: use strtol() instead of atoi() Roman Mashak
2017-11-01 21:06 ` Stephen Hemminger [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=20171101220641.2b710a94@shemminger-XPS-13-9360 \
    --to=stephen@networkplumber.org \
    --cc=jhs@mojatatu.com \
    --cc=mrv@mojatatu.com \
    --cc=netdev@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 NNTP newsgroup(s).