[NTOSKRNL] Fix IopValidateID using uninitialized var, reset SeparatorsCount in the MultiSz case.

This commit is contained in:
Mark Jansen 2018-04-05 22:06:31 +02:00
parent 6b1ca75899
commit a5f12908df
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B

View file

@ -1793,6 +1793,7 @@ IopValidateID(
case BusQueryHardwareIDs:
case BusQueryCompatibleIDs:
MaxSeparators = MAX_SEPARATORS_DEVICEID;
IsMultiSz = TRUE;
break;
@ -1823,6 +1824,7 @@ IopValidateID(
StringEnd = PtrChar + MAX_DEVICE_ID_LEN + 1;
PtrPrevChar = PtrChar;
SeparatorsCount = 0;
}
else if (Char < ' ' || Char > 0x7F || Char == ',')
{