lkml.org 
[lkml]   [2023]   [Aug]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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

\
 
 \ /
  Last update: 2023-08-30 20:53    [W:0.098 / U:1.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site