Bug 184384
Summary: | setlocale() calls free(NULL) | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 3 | Reporter: | Toralf <bugzilla> | ||||
Component: | glibc | Assignee: | Jakub Jelinek <jakub> | ||||
Status: | CLOSED NOTABUG | QA Contact: | Brian Brock <bbrock> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 3.0 | ||||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2006-03-11 20:18:22 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Toralf
2006-03-08 13:18:13 UTC
Created attachment 125795 [details]
Test program
Note that we've run extensive tests of the type indicated above, and this is the only instance of free(NULL) within the system libs encountered so far. This suggests to me that the developers have generally tried to avoid freeing NULL-pointers, which probably also means it was not done on purpose in this case. I don't see how the tests could be extensive, there are hundreds of places in glibc alone where free can be called with NULL and in all cases it relies on the ISO C99 7.20.3.2 mandated behavior of free - if ptr is a null pointer, no action occurs. |