Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 22 Jan 2018 20:00:40 +0100
From: Jann Horn <jannh@...gle.com>
To: Dan Williams <dan.j.williams@...el.com>
Cc: Thomas Gleixner <tglx@...utronix.de>, Mark Rutland <mark.rutland@....com>, 
	linux-arch <linux-arch@...r.kernel.org>, Kees Cook <keescook@...omium.org>, 
	Kernel Hardening <kernel-hardening@...ts.openwall.com>, Peter Zijlstra <peterz@...radead.org>, 
	Greg Kroah-Hartman <gregkh@...uxfoundation.org>, Jonathan Corbet <corbet@....net>, 
	Will Deacon <will.deacon@....com>, Linus Torvalds <torvalds@...ux-foundation.org>, 
	alan@...ux.intel.com
Subject: Re: [PATCH v4.1 01/10] Documentation: document array_ptr

On Sat, Jan 20, 2018 at 10:06 PM, Dan Williams <dan.j.williams@...el.com> wrote:
> From: Mark Rutland <mark.rutland@....com>
>
> Document the rationale and usage of the new array_ptr() helper.
[...]
> +A call to array_ptr(arr, idx, sz) returns a sanitized pointer to
> +arr[idx] only if idx falls in the [0, sz) interval. When idx < 0 or idx > sz,

"or idx >= sz"?

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.