Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(943)

Unified Diff: sandbox/src/handle_closer_agent.cc

Issue 7542026: Handle STATUS_BUFFER_OVERFLOW return value from NtQueryObject(). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sandbox/src/handle_closer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/src/handle_closer_agent.cc
===================================================================
--- sandbox/src/handle_closer_agent.cc (revision 95245)
+++ sandbox/src/handle_closer_agent.cc (working copy)
@@ -82,7 +82,8 @@
// Get the type name, reusing the buffer.
ULONG size = static_cast<ULONG>(type_info_buffer.size());
rc = QueryObject(handle, ObjectTypeInformation, type_info, size, &size);
- while (rc == STATUS_INFO_LENGTH_MISMATCH) {
+ while (rc == STATUS_INFO_LENGTH_MISMATCH ||
+ rc == STATUS_BUFFER_OVERFLOW) {
type_info_buffer.resize(size + sizeof(wchar_t));
type_info = reinterpret_cast<OBJECT_TYPE_INFORMATION*>(
&(type_info_buffer[0]));
« no previous file with comments | « sandbox/src/handle_closer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698