Apache OpenOffice (AOO) Bugzilla – Issue 2819
setup crashes when LOGNAME is unset
Last modified: 2003-09-08 16:53:51 UTC
If you start setup in a shell where the environment variable LOGNAME is unset, OOo will crash after the License screen. This is due to a bug in setup2 as the variable LOGNAME is directly taken from getenv (which returns a NULL pointer when the environment variable is unset) and passed as argument to UniString::CreateFromAscii which expects its argument to be non-NULL. This bug was observed on NetBSD, but the relevant code is protected by #ifdef UNX, so should affect all Unix versions of OOo. The attached patch fixes the problem by passing an empty string when getenv returns NULL, but IMHO it should be considered to change UniString::CreateFromAscii to accept NULL-pointers.
Created attachment 935 [details] fix for crash
Hi Olli, is this usefull for us?
I'll fix this
fixed in paddr.cxx ver 1.6 (OO642?)
This fix should also be applied to the OOO_STABLE_1 branch. => Reopened and keyword ooo1.0 set. Thank you
it's now in the branch.
Looks like the bugfix is ok.