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

Perform deepcopy in WdfDeviceInitAssignName #159

Open
absagar1 opened this issue Dec 15, 2023 · 0 comments
Open

Perform deepcopy in WdfDeviceInitAssignName #159

absagar1 opened this issue Dec 15, 2023 · 0 comments

Comments

@absagar1
Copy link

Right now _WdfDeviceInitAssignName is holding on to the driver supplied name and saves it as device_name. However, the device_name buffer supplied to this routine may be freed after the call to _WdfDeviceInitAssignName (or subsequent call to _WdfDeviceCreate) since it's owned by the caller. A deep copy of the supplied device_name would mitigate this use-after-free issue.

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