mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[NTOS:KE] Fix buffer overflow when displaying x64 bug checks
This commit is contained in:
parent
2a2f8dbebd
commit
a4b2c80853
1 changed files with 9 additions and 8 deletions
|
@ -611,7 +611,7 @@ KiDisplayBlueScreen(IN ULONG MessageId,
|
|||
IN PCHAR HardErrMessage OPTIONAL,
|
||||
IN PCHAR Message)
|
||||
{
|
||||
CHAR AnsiName[75];
|
||||
CHAR AnsiName[107];
|
||||
|
||||
/* Check if bootvid is installed */
|
||||
if (InbvIsBootDriverInstalled())
|
||||
|
@ -676,13 +676,14 @@ KiDisplayBlueScreen(IN ULONG MessageId,
|
|||
KeGetBugMessageText(BUGCHECK_TECH_INFO, NULL);
|
||||
|
||||
/* Show the technical Data */
|
||||
sprintf(AnsiName,
|
||||
"\r\n\r\n*** STOP: 0x%08lX (0x%p,0x%p,0x%p,0x%p)\r\n\r\n",
|
||||
(ULONG)KiBugCheckData[0],
|
||||
(PVOID)KiBugCheckData[1],
|
||||
(PVOID)KiBugCheckData[2],
|
||||
(PVOID)KiBugCheckData[3],
|
||||
(PVOID)KiBugCheckData[4]);
|
||||
RtlStringCbPrintfA(AnsiName,
|
||||
sizeof(AnsiName),
|
||||
"\r\n\r\n*** STOP: 0x%08lX (0x%p,0x%p,0x%p,0x%p)\r\n\r\n",
|
||||
(ULONG)KiBugCheckData[0],
|
||||
(PVOID)KiBugCheckData[1],
|
||||
(PVOID)KiBugCheckData[2],
|
||||
(PVOID)KiBugCheckData[3],
|
||||
(PVOID)KiBugCheckData[4]);
|
||||
InbvDisplayString(AnsiName);
|
||||
|
||||
/* Check if we have a driver*/
|
||||
|
|
Loading…
Reference in a new issue