Skip to content

Commit 9bb7211

Browse files
committed
Fixed bug CORE-6437 : gfix cannot set big value for buffers
1 parent 47d8f65 commit 9bb7211

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/jrd/cch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3580,7 +3580,7 @@ static bool expand_buffers(thread_db* tdbb, ULONG number)
35803580

35813581
if (!num_in_seg)
35823582
{
3583-
const size_t alloc_size = dbb->dbb_page_size * (num_per_seg + 1);
3583+
const size_t alloc_size = ((size_t) dbb->dbb_page_size) * (num_per_seg + 1);
35843584
memory = (UCHAR*) bcb->bcb_bufferpool->allocate(alloc_size ALLOC_ARGS);
35853585
bcb->bcb_memory.push(memory);
35863586
memory = FB_ALIGN(memory, dbb->dbb_page_size);

0 commit comments

Comments
 (0)