[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171031173101.59e0047a@shemminger-XPS-13-9360>
Date: Tue, 31 Oct 2017 17:31:01 +0100
From: Stephen Hemminger <stephen@...workplumber.org>
To: Roman Mashak <mrv@...atatu.com>
Cc: netdev@...r.kernel.org, jhs@...atatu.com
Subject: Re: [PATCH iproute2 1/1] ip netns: use strtol() instead of atoi()
On Fri, 27 Oct 2017 12:55:27 -0400
Roman Mashak <mrv@...atatu.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.
>
> Signed-off-by: Roman Mashak <mrv@...atatu.com>
Since network namespace is really an unsigned value, shouldn't it be
using get_unsigned?
Powered by blists - more mailing lists