summaryrefslogtreecommitdiffstats
path: root/sandbox
diff options
context:
space:
mode:
authorjschuh@chromium.org <jschuh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-23 22:17:17 +0000
committerjschuh@chromium.org <jschuh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-23 22:17:17 +0000
commit691f83252cd882d9033bc4fc10ee462a9609daef (patch)
tree815cae47438c5b20c433ffb6e81588195f3edda4 /sandbox
parent130e81c1add2a58f545ed097d28817c79ef88ba4 (diff)
downloadchromium_src-691f83252cd882d9033bc4fc10ee462a9609daef.zip
chromium_src-691f83252cd882d9033bc4fc10ee462a9609daef.tar.gz
chromium_src-691f83252cd882d9033bc4fc10ee462a9609daef.tar.bz2
Don't crash on a NULL type-name from ObjectTypeInformation.
BUG=93449 TEST=None. Review URL: http://codereview.chromium.org/7714003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97934 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox')
-rw-r--r--sandbox/src/handle_closer_agent.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sandbox/src/handle_closer_agent.cc b/sandbox/src/handle_closer_agent.cc
index 38c174e1..78d060e 100644
--- a/sandbox/src/handle_closer_agent.cc
+++ b/sandbox/src/handle_closer_agent.cc
@@ -92,7 +92,7 @@ bool HandleCloserAgent::CloseHandles() {
if (NT_SUCCESS(0) && size == type_info_buffer.size())
rc = STATUS_INFO_LENGTH_MISMATCH;
}
- if (!NT_SUCCESS(rc)) {
+ if (!NT_SUCCESS(rc) || !type_info->Name.Buffer) {
++invalid_count;
continue;
}