public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug sanitizer/61547] New: Invalid sanitization of trailing byte in __builtin_strlen
@ 2014-06-18  9:52 y.gribov at samsung dot com
  2014-06-18  9:54 ` [Bug sanitizer/61547] " y.gribov at samsung dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: y.gribov at samsung dot com @ 2014-06-18  9:52 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61547

            Bug ID: 61547
           Summary: Invalid sanitization of trailing byte in
                    __builtin_strlen
           Product: gcc
           Version: 4.10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: sanitizer
          Assignee: unassigned at gcc dot gnu.org
          Reporter: y.gribov at samsung dot com
                CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
                    jakub at gcc dot gnu.org, kcc at gcc dot gnu.org

Created attachment 32963
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32963&action=edit
Reprocase

The attached testcase performs an overflow in strlen call. Current GCC fails to
detect it because of invalid instrumentation of trailing byte:
$ gcc repro.c -fsanitize=address -O1 -static-libasan
$ ./a.out
$ echo $?
0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-04-17  7:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-18  9:52 [Bug sanitizer/61547] New: Invalid sanitization of trailing byte in __builtin_strlen y.gribov at samsung dot com
2014-06-18  9:54 ` [Bug sanitizer/61547] " y.gribov at samsung dot com
2014-06-18 10:37 ` kcc at gcc dot gnu.org
2014-06-18 11:19 ` rguenth at gcc dot gnu.org
2014-06-18 11:33 ` kcc at gcc dot gnu.org
2014-06-19 20:09 ` tetra2005 at gmail dot com
2014-10-16 13:47 ` ygribov at gcc dot gnu.org
2015-04-17  7:45 ` y.gribov at samsung dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).