Issue 65462 - EnsureNoFinalSlash and NULL argument
Summary: EnsureNoFinalSlash and NULL argument
Status: CLOSED FIXED
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: current
Hardware: All All
: P3 Trivial (vote)
Target Milestone: 4.x
Assignee: Stephan Bergmann
QA Contact: issues@porting
URL:
Keywords:
: 74242 (view as issue list)
Depends on:
Blocks:
 
Reported: 2006-05-16 19:54 UTC by pavel
Modified: 2008-08-18 15:11 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description pavel 2006-05-16 19:54:39 UTC
Hi,

rtl/source/bootstrap.cxx contains several instances of

                        oslSecurity security = osl_getCurrentSecurity();
                        osl_getConfigDir(security, ppValue);
                        EnsureNoFinalSlash(ppValue);

-> if the osl_getCurrentSecurity fails for some reason (like #i65004#),
Ensure... function can crash because it doesn't check its argument and it
dereferences it.
Comment 1 Stephan Bergmann 2006-05-17 09:05:20 UTC
.
Comment 2 Stephan Bergmann 2007-02-07 08:21:51 UTC
*** Issue 74242 has been marked as a duplicate of this issue. ***
Comment 3 Stephan Bergmann 2008-08-18 15:11:30 UTC
fixed as of sal/rtl/source/bootstrap.cxx:1.43
Comment 4 Stephan Bergmann 2008-08-18 15:11:59 UTC
.