Re: [PATCH iproute2 1/1] ip netns: use strtol() instead of atoi()
From: Roman Mashak <hidden>
Date: 2017-10-31 18:01:34
From: Roman Mashak <hidden>
Date: 2017-10-31 18:01:34
Stephen Hemminger [off-list ref] writes:
On Fri, 27 Oct 2017 12:55:27 -0400 Roman Mashak [off-list ref] wrote:quoted
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 <redacted>Since network namespace is really an unsigned value, shouldn't it be using get_unsigned?
Agree, I will resend v2.