This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/63245] renderMemorySnippet shouldn't show more bytes than the underlying type
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 15 Sep 2014 20:50:17 +0000
- Subject: [Bug sanitizer/63245] renderMemorySnippet shouldn't show more bytes than the underlying type
- Auto-submitted: auto-generated
- References: <bug-63245-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63245
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I think it shows some bytes also before and after the region.
Perhaps it can do that with the exception when there is a page boundary in the
region before the access or after it, or perhaps it can do so without extra
overhead in that case, otherwise look at /proc/self/maps to see if it can
access those bytes, or use mincore syscall first, etc.