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


Groups > linux.kernel > #1373132

Re: [PATCH v3 1/6] string_helpers: add kstrdup_quotable

From Joe Perches <joe@perches.com>
Newsgroups linux.kernel
Subject Re: [PATCH v3 1/6] string_helpers: add kstrdup_quotable
Date 2016-04-07 10:10 +0200
Message-ID <rldaN-RS-3@gated-at.bofh.it> (permalink)
References <rl5ZD-3Ja-3@gated-at.bofh.it> <rl5ZE-3Ja-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, 2016-04-06 at 17:20 -0700, Kees Cook wrote:
> Handle allocating and escaping a string safe for logging.

trivia: should add const

> diff --git a/include/linux/string_helpers.h b/include/linux/string_helpers.h
[]
> @@ -68,4 +68,6 @@ static inline int string_escape_str_any_np(const char *src, char *dst,
>  	return string_escape_str(src, dst, sz, ESCAPE_ANY_NP, only);
>  }
>  
> +char *kstrdup_quotable(char *src, gfp_t gfp);

char *kstrdup_quotable(const char *src, gfp_t gfp);

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


Thread

[PATCH v3 1/6] string_helpers: add kstrdup_quotable Kees Cook <keescook@chromium.org> - 2016-04-07 02:30 +0200
  Re: [PATCH v3 1/6] string_helpers: add kstrdup_quotable Joe Perches <joe@perches.com> - 2016-04-07 10:10 +0200

csiph-web