[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87ftd3ldmq.fsf@toke.dk>
Date: Thu, 16 Apr 2020 16:16:29 +0200
From: Toke Høiland-Jørgensen <toke@...hat.com>
To: Odin Ugedal <odin@...dal.com>, odin@...dal.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH v2 3/3] tc_util: detect overflow in get_size
Odin Ugedal <odin@...dal.com> writes:
> This detects overflow during parsing of value using get_size:
>
> eg. running:
>
> $ tc qdisc add dev lo root cake memlimit 11gb
>
> currently gives a memlimit of "3072Mb", while with this patch it errors
> with 'illegal value for "memlimit": "11gb"', since memlinit is an
> unsigned integer.
>
> Signed-off-by: Odin Ugedal <odin@...dal.com>
Acked-by: Toke Høiland-Jørgensen <toke@...hat.com>
Powered by blists - more mailing lists