public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/67484] New: options-save.c sanitizer asan detects freed storage referenced  heap-use-after-free
@ 2015-09-07 14:47 zeccav at gmail dot com
  2015-09-15  7:44 ` [Bug target/67484] " ubizjak at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: zeccav at gmail dot com @ 2015-09-07 14:47 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 67484
           Summary: options-save.c sanitizer asan detects freed storage
                    referenced  heap-use-after-free
           Product: gcc
           Version: 5.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zeccav at gmail dot com
  Target Milestone: ---

//g++ references freed storage
//sanitizer message: heap-use-after-free
//referenced at options-save.c:3556 "|| strcmp (ptr1->x_ix86_arch_string,
ptr2->x_ix86_arch_string)))" 
//ptr1->x_ix86_arch_string was freed at gcc/config/i386/i386.c:5020 "free
(option_strings[i]);"
//to make happy the sanitizer I commented out the for loop in i386.c lines
5019-5020
//// Target: x86_64-unknown-linux-gnu
int fum () __attribute__ ((target("default")));
int fum () __attribute__ ((target("arch=core2")));
int j = fum();


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

end of thread, other threads:[~2015-09-16 16:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-07 14:47 [Bug c++/67484] New: options-save.c sanitizer asan detects freed storage referenced heap-use-after-free zeccav at gmail dot com
2015-09-15  7:44 ` [Bug target/67484] " ubizjak at gmail dot com
2015-09-15 10:09 ` ubizjak at gmail dot com
2015-09-15 13:38 ` zeccav at gmail dot com
2015-09-15 18:32 ` ubizjak at gmail dot com
2015-09-16 16:45 ` ubizjak at gmail 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).