retronx-team / mtp-server-nx

A MTP Server implementation for Nintendo Switch
Apache License 2.0
160 stars 15 forks source link

Added proper bounds checking for object handle #8

Closed ckurtz22 closed 5 years ago

ckurtz22 commented 5 years ago

Windows was requesting information on an invalid object handle that wasn't being checked causing invalid memory access. This fixes it for that instance. Fix should be easily applied to other instances but I would like a better understanding of how MTP works before putting it everywhere.

ckurtz22 commented 5 years ago

4

m4xw commented 5 years ago

ty