Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
4aafdfd1
Commit
4aafdfd1
authored
10 years ago
by
Oz Linden
Browse files
Options
Downloads
Patches
Plain Diff
add catch for possible exception in llsechandler_basic destructor (crash on exit)
parent
e19809cb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/llsechandler_basic.cpp
+24
-8
24 additions, 8 deletions
indra/newview/llsechandler_basic.cpp
with
24 additions
and
8 deletions
indra/newview/llsechandler_basic.cpp
+
24
−
8
View file @
4aafdfd1
...
@@ -1364,6 +1364,7 @@ void LLSecAPIBasicHandler::_writeProtectedData()
...
@@ -1364,6 +1364,7 @@ void LLSecAPIBasicHandler::_writeProtectedData()
}
}
catch
(...)
catch
(...)
{
{
LL_WARNS
()
<<
"LLProtectedDataException(Error writing Protected Data Store)"
<<
LL_ENDL
;
// it's good practice to clean up any secure information on error
// it's good practice to clean up any secure information on error
// (even though this file isn't really secure. Perhaps in the future
// (even though this file isn't really secure. Perhaps in the future
// it may be, however.
// it may be, however.
...
@@ -1372,20 +1373,35 @@ void LLSecAPIBasicHandler::_writeProtectedData()
...
@@ -1372,20 +1373,35 @@ void LLSecAPIBasicHandler::_writeProtectedData()
// EXP-1825 crash in LLSecAPIBasicHandler::_writeProtectedData()
// EXP-1825 crash in LLSecAPIBasicHandler::_writeProtectedData()
// Decided throwing an exception here was overkill until we figure out why this happens
// Decided throwing an exception here was overkill until we figure out why this happens
//throw LLProtectedDataException("Error writing Protected Data Store");
//throw LLProtectedDataException("Error writing Protected Data Store");
LL_INFOS
()
<<
"LLProtectedDataException(Error writing Protected Data Store)"
<<
LL_ENDL
;
}
}
// move the temporary file to the specified file location.
try
if
((((
LLFile
::
isfile
(
mProtectedDataFilename
)
!=
0
)
&&
{
(
LLFile
::
remove
(
mProtectedDataFilename
)
!=
0
)))
||
// move the temporary file to the specified file location.
(
LLFile
::
rename
(
tmp_filename
,
mProtectedDataFilename
)))
if
(((
(
LLFile
::
isfile
(
mProtectedDataFilename
)
!=
0
)
&&
(
LLFile
::
remove
(
mProtectedDataFilename
)
!=
0
)))
||
(
LLFile
::
rename
(
tmp_filename
,
mProtectedDataFilename
)))
{
LL_WARNS
()
<<
"LLProtectedDataException(Could not overwrite protected data store)"
<<
LL_ENDL
;
LLFile
::
remove
(
tmp_filename
);
// EXP-1825 crash in LLSecAPIBasicHandler::_writeProtectedData()
// Decided throwing an exception here was overkill until we figure out why this happens
//throw LLProtectedDataException("Could not overwrite protected data store");
}
}
catch
(...)
{
{
LL_WARNS
()
<<
"LLProtectedDataException(Error renaming '"
<<
tmp_filename
<<
"' to '"
<<
mProtectedDataFilename
<<
"')"
<<
LL_ENDL
;
// it's good practice to clean up any secure information on error
// (even though this file isn't really secure. Perhaps in the future
// it may be, however.
LLFile
::
remove
(
tmp_filename
);
LLFile
::
remove
(
tmp_filename
);
//
EXP-1825
crash in LLSecAPIBasicHandler::_writeProtectedData()
//crash in LLSecAPIBasicHandler::_writeProtectedData()
// Decided throwing an exception here was overkill until we figure out why this happens
// Decided throwing an exception here was overkill until we figure out why this happens
//throw LLProtectedDataException("Could not overwrite protected data store");
//throw LLProtectedDataException("Error writing Protected Data Store");
LL_INFOS
()
<<
"LLProtectedDataException(Could not overwrite protected data store)"
<<
LL_ENDL
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment