[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:
Timo Kreuzer 2024-03-02 12:48:09 +02:00
parent a69b0c9fd5
commit c5f93c50dd

View file

@ -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 */