Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BBMMapDriver函数PsCreateSystemThread没有释放句柄 #510

Open
WINGS2709 opened this issue Jun 15, 2023 · 0 comments
Open

BBMMapDriver函数PsCreateSystemThread没有释放句柄 #510

WINGS2709 opened this issue Jun 15, 2023 · 0 comments

Comments

@WINGS2709
Copy link

WINGS2709 commented Jun 15, 2023

NTSTATUS status = PsCreateSystemThread( &hThread, THREAD_ALL_ACCESS, &obAttr, NULL, &clientID, &BBMapWorker, pPath );
hThread没有释放,是否漏写了ZwClose?

以下是官网介绍:
[out] ThreadHandle
指向将接收句柄的变量。 在不再使用句柄后,驱动程序必须使用 ZwClose 关闭该句柄。 此句柄是 Windows Vista 和更高版本的 Windows 的内核句柄。 在早期版本的 Windows 中,句柄可能不是内核句柄。

@WINGS2709 WINGS2709 reopened this Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant