Monthly Archives: February 2019

Tracking Down a FILE_OBJECT leak

I recently looked at an an issue where a kernel component was leaking FILE_OBJECTs. The handle count on the objects was zero but they all had outstanding references keeping them open. Note: This is not new territory but I had … Continue reading

Posted in Debugging, File System, GFlags, Windbg, Windows | 1 Comment

64-bit HANDLEs can be truncated to 32-bits

I came across this bit of code thanks to a compiler warning (obviously, error checking has been removed): HANDLE handle = CreateFileW(…) INT lzHandle = LzInit((INT) handle); On 64-bit Windows, this results in a truncation of ‘handle’, but it turns … Continue reading

Posted in SDL, Windows | Leave a comment