lkml.org 
[lkml]   [2018]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Re: [PATCH v1 1/2] sysctl: cap to ULONG_MAX in proc_get_long()
> int kstrtoul_bounded(const char *s, unsigned int base,
> char **trailing, unsigned long long *res)

NO! The whole point is not have million variants of slightly different
integer parsing functions.
Cap it in the sysctl -- noone would care.

\
 
 \ /
  Last update: 2018-10-15 21:27    [W:0.054 / U:0.452 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site