mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
Bug#17951: myisampack --force --silent : abnormal end in Windows XP
-myisampack wrote to a block on the heap that it did not allocate. myisam/myisampack.c: Bug#17951: myisampack --force --silent : abnormal end in Windows XP -Added additional check to ensure that only the allocated buffer is used.
This commit is contained in:
parent
c838a52ff3
commit
8a223884b9
1 changed files with 2 additions and 0 deletions
|
@ -2922,6 +2922,8 @@ static void flush_bits(void)
|
|||
bits-= 8;
|
||||
*file_buffer.pos++= (uchar) (bit_buffer >> bits);
|
||||
}
|
||||
if (file_buffer.pos >= file_buffer.end)
|
||||
VOID(flush_buffer(~ (ulong) 0));
|
||||
file_buffer.bits= BITS_SAVED;
|
||||
file_buffer.bitbucket= 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue