Re: [PATCH] asan_test.C: disable -Wstringop-overflow, PR/93058

2020-01-24 Thread Sergei Trofimovich via gcc-patches
On Fri, 24 Jan 2020 22:20:43 +0100 Jakub Jelinek wrote: > On Fri, Jan 24, 2020 at 07:57:22AM +, slyfox.inbox.ru via gcc-patches > wrote: > > From: Sergei Trofimovich > > > > From: Sergei Trofimovich > > > > asan's test allocates 2 pages via pvalloc(kPageSize + 100) > > and makes sure der

Re: [PATCH] asan_test.C: disable -Wstringop-overflow, PR/93058

2020-01-24 Thread Jakub Jelinek
On Fri, Jan 24, 2020 at 07:57:22AM +, slyfox.inbox.ru via gcc-patches wrote: > From: Sergei Trofimovich > > From: Sergei Trofimovich > > asan's test allocates 2 pages via pvalloc(kPageSize + 100) > and makes sure dereference of 'kPageSize + 101' does not > trigger asan checks. > > glibc's

[PATCH] asan_test.C: disable -Wstringop-overflow, PR/93058

2020-01-23 Thread slyfox.inbox.ru via gcc-patches
From: Sergei Trofimovich From: Sergei Trofimovich asan's test allocates 2 pages via pvalloc(kPageSize + 100) and makes sure dereference of 'kPageSize + 101' does not trigger asan checks. glibc's and gcc's malloc-like attribute checkers trigger a warning: asan_test.cc:129:22: error: writing