Devolutions / devolutions-gateway

A blazing fast relay server adaptable to different protocols and desired levels of traffic inspection.
Apache License 2.0
69 stars 13 forks source link

refactor: fix soundness hole in `Handle` API #998

Closed CBenoit closed 2 months ago

CBenoit commented 2 months ago

The API of Handle in win-api-wrappers is allowing UB without unsafe code. I adjusted the API to fix the hole. Note that this PR is not fixing any vulnerability or bug per se. It only fixes the unsound safe API that we are using correctly in this repository only.

cc @kbouchard-dev