This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/15852] New: strdup(NULL) causes SEGV


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]