Details
-
Bug
-
Resolution: Won't Fix
-
Major
-
None
-
None
Description
On check why my old Laptop did not find any HDD I come over that in base\setup\usetup\partlist.c in EnumerateBiosDiskEntries calls like this are not save:
swprintf(Name, L"%s\\%lu\\DiskController
0", ROOT_NAME, AdapterCount);
Status = RtlQueryRegistryValues(RTL_REGISTRY_ABSOLUTE,
Name,
&QueryTable[2],
NULL,
NULL);
because QueryTable has only 3 member and the 4th is undefined.
But the documentation of MS https://msdn.microsoft.com/en-us/library/windows/hardware/ff562046.aspx
say next element must have some null stuff in it (QueryRoutine and Name null)
but I guess this check is also not happen in implementation of RtlQueryRegistryValues
edit: same in base\system\diskpart\partlist.c since source Code is dupplicated