mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[CMLIB] Quick-fix a pool buffer overrun
A more complete fix is in PR #6064, but this needs to be fixed now.
This commit is contained in:
parent
a69b0c9fd5
commit
c5f93c50dd
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ HvpWriteLog(
|
|||
* Now calculate the bitmap and buffer sizes to hold up our
|
||||
* contents in a buffer.
|
||||
*/
|
||||
BitmapSize = ROUND_UP(sizeof(ULONG) + RegistryHive->DirtyVector.SizeOfBitMap / 8, HSECTOR_SIZE);
|
||||
BitmapSize = ROUND_UP(sizeof(ULONG) + RegistryHive->DirtyVector.SizeOfBitMap, HSECTOR_SIZE);
|
||||
BufferSize = HV_LOG_HEADER_SIZE + BitmapSize;
|
||||
|
||||
/* Now allocate the base header block buffer */
|
||||
|
|
Loading…
Reference in a new issue