Bug#17951: myisampack --force --silent : abnormal end in Windows XP
-myisampack wrote to a block on the heap that it did not allocate.
This commit is contained in:
parent
82ad2e5e92
commit
b457572385
@ -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…
x
Reference in New Issue
Block a user