OpenSolaris

Printable Version Enter a New Search
Bug ID 6183277
Synopsis getenv should be more gracious to broken apps
State 10-Fix Delivered (Fix available in build)
Category:Subcategory library:libc
Keywords ssperf
Responsible Engineer Phil Harman
Reported Against s10_67
Duplicate Of
Introduced In solaris_10
Commit to Fix s10_71
Fixed In s10_71
Release Fixed solaris_10(s10_71)
Related Bugs 6333830 , 5090802 , 4991763 , 5098074 , 5104411
Submit Date 22-October-2004
Last Update Date 16-February-2007
Description
The fix for 4991763 is incomplete because it assumes POSIX.1 2001 comformance which forbids applications from modifying environ directly when they use APIs such as getenv() and setenv(). However, a number of test cases have come to light which suffer SEGV after updating environ for themselves. Whilst such applications are broken w.r.t. POSIX.1 2001 (and should be fixed) it has been pointed out that neither the SVID nor POSIX.1 1996 foresaw this issue.
 xxxxx@xxxxx.com 10/22/04 18:18 GMT
Work Around
N/A
Comments
N/A