Closed GoogleCodeExporter closed 9 years ago
I think you can't rely on MyData instances to be adjacent to each other in
my_section. For example my compiler (x86_64-pc-cygwin GCC) inserts 16-byte
alignment after each instance.
Original comment by tetra2...@gmail.com
on 9 Nov 2014 at 9:12
This is clearly working as intended -- asan finds a real bug.
Nothing in the C/C++ standard guarantees that the globals will be emitted the
way this code expects.
To silence this report simply compile section.c w/o asan.
Original comment by konstant...@gmail.com
on 10 Nov 2014 at 5:20
> To silence this report simply compile section.c w/o asan.
Although I wouldn't recommend this - the code can only work by pure accident.
Original comment by tetra2...@gmail.com
on 10 Nov 2014 at 5:53
Adding Project:AddressSanitizer as part of GitHub migration.
Original comment by ramosian.glider@gmail.com
on 30 Jul 2015 at 9:14
Original issue reported on code.google.com by
stefan.p...@gmail.com
on 9 Nov 2014 at 8:35