mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-27 11:53:32 +00:00
[NTOSKRNL] Don't overflow backtrack stack buffer
CORE-15902
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user