Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1647089

Re: [PATCH] cmdline: fix get_options() overflow while parsing ranges

From Greg KH <greg@kroah.com>
Newsgroups linux.kernel
Subject Re: [PATCH] cmdline: fix get_options() overflow while parsing ranges
Date 2017-05-22 18:10 +0200
Message-ID <tJY49-7To-7@gated-at.bofh.it> (permalink)
References <tJXUv-7yP-37@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, May 22, 2017 at 07:53:47PM +0400, Ilya Matveychikov wrote:
> When using get_options() it's possible to specify a range of numbers,
> like 1-100500. The problem is that it doesn't track array size while
> calling internally to get_range() which iterates over the range and
> fills the memory with numbers.
> 
> Signed-off-by: Ilya V. Matveychikov <matvejchikov@gmail.com>
> ---
>  lib/cmdline.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

<formletter>

This is not the correct way to submit patches for inclusion in the
stable kernel tree.  Please read:
    https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
for how to do this properly.

</formletter>

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] cmdline: fix get_options() overflow while parsing ranges Ilya Matveychikov <matvejchikov@gmail.com> - 2017-05-22 18:00 +0200
  Re: [PATCH] cmdline: fix get_options() overflow while parsing ranges Greg KH <greg@kroah.com> - 2017-05-22 18:10 +0200

csiph-web