-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Fix Version/s: 0.4.2
-
Component/s: Drivers: Other
-
Labels:None
-
Module:
-
Sprint:May 2016
ACPI has the following code snippet:
index = 0;
|
index += swprintf(&temp[index],
|
L"ACPI\\%hs",
|
Device->pnp.hardware_id);
|
index++;
|
|
index += swprintf(&temp[index],
|
L"*%hs",
|
Device->pnp.hardware_id);
|
index++;
|
temp[++index] = UNICODE_NULL;
|
Using ++index in the last line moves the null one further than intended, and temp[index-1] will be left uninitialized