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 string/21846] Null pointer dereference in strlen()


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

Dmitry V. Levin <ldv at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |ldv at sourceware dot org
         Resolution|---                         |INVALID

--- Comment #1 from Dmitry V. Levin <ldv at sourceware dot org> ---
strlen(3) and strdup(3) operate with strings specified by pointer arguments.
Null pointer specifies no valid string, passing it to strdup(3) or strlen(3)
invokes an undefined behaviour.

-- 
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]