We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47d8f65 commit 9bb7211Copy full SHA for 9bb7211
1 file changed
src/jrd/cch.cpp
@@ -3580,7 +3580,7 @@ static bool expand_buffers(thread_db* tdbb, ULONG number)
3580
3581
if (!num_in_seg)
3582
{
3583
- const size_t alloc_size = dbb->dbb_page_size * (num_per_seg + 1);
+ const size_t alloc_size = ((size_t) dbb->dbb_page_size) * (num_per_seg + 1);
3584
memory = (UCHAR*) bcb->bcb_bufferpool->allocate(alloc_size ALLOC_ARGS);
3585
bcb->bcb_memory.push(memory);
3586
memory = FB_ALIGN(memory, dbb->dbb_page_size);
0 commit comments