lkml.org 
[lkml]   [2018]   [Apr]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v5 09/11] vsprintf: Prevent crash when dereferencing invalid pointers
From
Date
On Wed, 2018-04-25 at 18:10 +0300, Andy Shevchenko wrote:

Some typos fixed

> I would preserve similar style of buf pointer handling, i.e.
>
> static char *valid_pointer_access(char **buf, char *end,

char *buf

> const void *ptr, struct printf_spec
> spec)
> {
> const char *err_msg;
>
> err_msg = check_pointer_access(ptr);
> if (err_msg)
> return = valid_string(*buf, end, err_msg, spec);

return valid_string(buf, end, err_msg, spec);

> return NULL;
> }
>

--
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy

\
 
 \ /
  Last update: 2018-04-25 17:33    [W:0.082 / U:4.468 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site