public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/15852] New: strdup(NULL) causes SEGV
@ 2013-08-19  6:51 arno at cs dot vu.nl
  2013-08-19  6:59 ` [Bug libc/15852] " aj at suse dot de
  2014-06-13 13:08 ` fweimer at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: arno at cs dot vu.nl @ 2013-08-19  6:51 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=15852

            Bug ID: 15852
           Summary: strdup(NULL) causes SEGV
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: arno at cs dot vu.nl
                CC: drepper.fsp at gmail dot com

There is no checking of the input value, 2.18 just does:

size_t len = strlen (s) + 1;

as its first line. Is this correct / by design?

Thanks,
    Arno

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug libc/15852] strdup(NULL) causes SEGV
  2013-08-19  6:51 [Bug libc/15852] New: strdup(NULL) causes SEGV arno at cs dot vu.nl
@ 2013-08-19  6:59 ` aj at suse dot de
  2014-06-13 13:08 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: aj at suse dot de @ 2013-08-19  6:59 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=15852

Andreas Jaeger <aj at suse dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aj at suse dot de
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #1 from Andreas Jaeger <aj at suse dot de> ---
Yes, this is expected behaviour. strdup requires a valid pointer - and NULL is
not a valid allocated pointer.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug libc/15852] strdup(NULL) causes SEGV
  2013-08-19  6:51 [Bug libc/15852] New: strdup(NULL) causes SEGV arno at cs dot vu.nl
  2013-08-19  6:59 ` [Bug libc/15852] " aj at suse dot de
@ 2014-06-13 13:08 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 13:08 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=15852

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

end of thread, other threads:[~2014-06-13 13:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-19  6:51 [Bug libc/15852] New: strdup(NULL) causes SEGV arno at cs dot vu.nl
2013-08-19  6:59 ` [Bug libc/15852] " aj at suse dot de
2014-06-13 13:08 ` fweimer at redhat 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).