public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/67567] New: pretty-print.h sanitizer detects NULL pointer passed to obstack_grow
@ 2015-09-14  6:11 zeccav at gmail dot com
  2015-09-14 10:14 ` [Bug fortran/67567] resolve.c: gfc_error called with iface->module == NULL manu at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: zeccav at gmail dot com @ 2015-09-14  6:11 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 67567
           Summary: pretty-print.h sanitizer detects NULL pointer passed
                    to obstack_grow
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zeccav at gmail dot com
  Target Milestone: ---

While running make check-fortran on submodule_4.f08 the sanitizer complains
that in pretty-print.h:142

obstack_grow (buff->obstack, start, length);

the pointer start == NULL

Most probably length == 0

but I believe it best to fix it by prefixing the statement with "if(length)"


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

end of thread, other threads:[~2015-09-26 18:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-14  6:11 [Bug fortran/67567] New: pretty-print.h sanitizer detects NULL pointer passed to obstack_grow zeccav at gmail dot com
2015-09-14 10:14 ` [Bug fortran/67567] resolve.c: gfc_error called with iface->module == NULL manu at gcc dot gnu.org
2015-09-14 14:27 ` zeccav at gmail dot com
2015-09-14 16:24 ` manu at gcc dot gnu.org
2015-09-25 14:24 ` manu at gcc dot gnu.org
2015-09-26 18:04 ` pault at gcc dot gnu.org
2015-09-26 18:11 ` paul.richard.thomas 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).