mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +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 HardErrMessage OPTIONAL,
|
||||||
IN PCHAR Message)
|
IN PCHAR Message)
|
||||||
{
|
{
|
||||||
CHAR AnsiName[75];
|
CHAR AnsiName[107];
|
||||||
|
|
||||||
/* Check if bootvid is installed */
|
/* Check if bootvid is installed */
|
||||||
if (InbvIsBootDriverInstalled())
|
if (InbvIsBootDriverInstalled())
|
||||||
|
@ -676,7 +676,8 @@ KiDisplayBlueScreen(IN ULONG MessageId,
|
||||||
KeGetBugMessageText(BUGCHECK_TECH_INFO, NULL);
|
KeGetBugMessageText(BUGCHECK_TECH_INFO, NULL);
|
||||||
|
|
||||||
/* Show the technical Data */
|
/* Show the technical Data */
|
||||||
sprintf(AnsiName,
|
RtlStringCbPrintfA(AnsiName,
|
||||||
|
sizeof(AnsiName),
|
||||||
"\r\n\r\n*** STOP: 0x%08lX (0x%p,0x%p,0x%p,0x%p)\r\n\r\n",
|
"\r\n\r\n*** STOP: 0x%08lX (0x%p,0x%p,0x%p,0x%p)\r\n\r\n",
|
||||||
(ULONG)KiBugCheckData[0],
|
(ULONG)KiBugCheckData[0],
|
||||||
(PVOID)KiBugCheckData[1],
|
(PVOID)KiBugCheckData[1],
|
||||||
|
|
Loading…
Reference in a new issue