mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[NTOSKRNL] Don't overflow backtrack stack buffer
CORE-15902
This commit is contained in:
parent
b1ae592e7f
commit
5d5e9c8486
2 changed files with 2 additions and 2 deletions
|
@ -283,7 +283,7 @@ FsRtlIsDbcsInExpression(IN PANSI_STRING Expression,
|
|||
}
|
||||
|
||||
/* If buffer too small */
|
||||
if (BackTrackingPosition > BackTrackingBufferSize - 2)
|
||||
if (BackTrackingPosition > BackTrackingBufferSize - 3)
|
||||
{
|
||||
/* We should only ever get here once! */
|
||||
ASSERT(AllocatedBuffer == NULL);
|
||||
|
|
|
@ -135,7 +135,7 @@ FsRtlIsNameInExpressionPrivate(IN PUNICODE_STRING Expression,
|
|||
}
|
||||
|
||||
/* If buffer too small */
|
||||
if (BackTrackingPosition > BackTrackingBufferSize - 2)
|
||||
if (BackTrackingPosition > BackTrackingBufferSize - 3)
|
||||
{
|
||||
/* We should only ever get here once! */
|
||||
ASSERT(AllocatedBuffer == NULL);
|
||||
|
|
Loading…
Reference in a new issue