| OLD | NEW |
| 1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "sandbox/win/sandbox_poc/pocdll/exports.h" | 5 #include "sandbox/win/sandbox_poc/pocdll/exports.h" |
| 6 #include "sandbox/win/sandbox_poc/pocdll/ntundoc.h" |
| 6 #include "sandbox/win/sandbox_poc/pocdll/utils.h" | 7 #include "sandbox/win/sandbox_poc/pocdll/utils.h" |
| 7 #include "sandbox/win/tools/finder/ntundoc.h" | |
| 8 | 8 |
| 9 // This file contains the tests used to verify the security of handles in | 9 // This file contains the tests used to verify the security of handles in |
| 10 // the process | 10 // the process |
| 11 | 11 |
| 12 NTQUERYOBJECT NtQueryObject; | 12 NTQUERYOBJECT NtQueryObject; |
| 13 NTQUERYINFORMATIONFILE NtQueryInformationFile; | 13 NTQUERYINFORMATIONFILE NtQueryInformationFile; |
| 14 NTQUERYSYSTEMINFORMATION NtQuerySystemInformation; | 14 NTQUERYSYSTEMINFORMATION NtQuerySystemInformation; |
| 15 | 15 |
| 16 void POCDLL_API TestGetHandle(HANDLE log) { | 16 void POCDLL_API TestGetHandle(HANDLE log) { |
| 17 HandleToFile handle2file; | 17 HandleToFile handle2file; |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 | 177 |
| 178 if (name) { | 178 if (name) { |
| 179 delete [] name; | 179 delete [] name; |
| 180 } | 180 } |
| 181 } | 181 } |
| 182 | 182 |
| 183 if (system_handles) { | 183 if (system_handles) { |
| 184 delete [] system_handles; | 184 delete [] system_handles; |
| 185 } | 185 } |
| 186 } | 186 } |
| OLD | NEW |