microsoft/Windows-classic-samples

RegfsProvider fails displaying HKEY_CURRENT_USER because of the * entry

Dhebug opened this issue · 0 comments

Dhebug commented

In RegfsProvider::PopulateDirInfoForPath the _regOps.EnumerateKey does not seem to perform any filtering on the keys is fetches, so if it encounters a key containing characters invalid for the Windows File System, PrjFillDirEntryBuffer will refuse the entry and the enumeration of the directory will abort

A possible fix is to have EnumerateKey only perform the entries.SubKeys.push_back(entry); if the keyName has passed some sanity check.