[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6f93ea82-f157-e921-2028-5b4fae4ad341@gnuweeb.org>
Date: Wed, 30 Aug 2023 21:40:37 +0700
From: Ammar Faizi <ammarfaizi2@...weeb.org>
To: David Laight <David.Laight@...LAB.COM>,
Zhangjin Wu <falcon@...ylab.org>, Willy Tarreau <w@....eu>
Cc: Arnd Bergmann <arnd@...db.de>,
Thomas Weißschuh <thomas@...ch.de>,
Yuan Tan <tanyuan@...ylab.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Linux Kselftest Mailing List
<linux-kselftest@...r.kernel.org>
Subject: Re: RE: [RFC] tools/nolibc: replace duplicated -ENOSYS return with
single -ENOSYS return
On 8/28/23 4:51 AM, David Laight wrote:
> I just found a(nother) clang bug:
> int f(void) { return "a"[2]; }
> compiles to just a 'return'.
I don't think that's a bug. It's undefined behavior due to an
out-of-bound read. What do you expect it to return?
--
Ammar Faizi
Powered by blists - more mailing lists