This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, committed] PR67933
- From: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- To: Dominique d'HumiÃres <dominiq at lps dot ens dot fr>
- Cc: gfortran <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 28 Oct 2015 06:44:58 +0100
- Subject: Re: [Patch, committed] PR67933
- Authentication-results: sourceware.org; auth=none
- References: <1193782F-944B-4E6C-A494-3A41058E0D1A at lps dot ens dot fr>
Oh bother! Thanks, Dominique
Paul
On 27 October 2015 at 19:24, Dominique d'HumiÃres <dominiq@lps.ens.fr> wrote:
> Dear Paul,
>
>> I have added a testcase, which has been committed as revision 229452.
>
> If I compile the test with -fsanitize=address,undefined I get at run time
>
> ==72440==ERROR: AddressSanitizer: global-buffer-overflow on address 0x00010adfee20 at pc 0x00010adf913d bp 0x7fff54e0a270 sp 0x7fff54e0a268
> READ of size 8 at 0x00010adfee20 thread T0
> #0 0x10adf913c in __test_mod_MOD_method (a.out+0x10000413c)
> #1 0x10adf9aac in MAIN__ (a.out+0x100004aac)
> #2 0x10adf9b30 in main (a.out+0x100004b30)
> #3 0x7fff8e6de5c8 in start (libdyld.dylib+0x35c8)
> #4 0x0 (<unknown module>)
>
> 0x00010adfee20 is located 0 bytes to the right of global variable 'x' defined in '/opt/gcc/_clean/gcc/testsuite/gfortran.dg/allocate_with_source_15.f03:75' (0x10adfed80) of size 160
> SUMMARY: AddressSanitizer: global-buffer-overflow (a.out+0x10000413c) in __test_mod_MOD_method
> Shadow bytes around the buggy address:
> â
>
> Dominique
>
--
Outside of a dog, a book is a man's best friend. Inside of a dog it's
too dark to read.
Groucho Marx