Bug 1018323
Summary: | strdup(3) segfaults when passing NULL to it | |||
---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Eryu Guan <eguan> | |
Component: | glibc | Assignee: | Carlos O'Donell <codonell> | |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 19 | CC: | codonell, fweimer, jakub, law, pfrankli, schwab, spoyarek | |
Target Milestone: | --- | |||
Target Release: | --- | |||
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1018326 1018331 (view as bug list) | Environment: | ||
Last Closed: | 2013-10-11 19:01:21 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1018326, 1018331 |
Description
Eryu Guan
2013-10-11 17:22:54 UTC
Why do you think it is wrong? NULL is not a pointer to a valid string, so it is your bug to call it with that. See http://pubs.opengroup.org/onlinepubs/9699919799/functions/strdup.html |