pool_shared_memory_create() should use data type size_t for a variable
to store shared memory size. The data type used was int and it would
overflow if the size is big.
* pgpool: a language independent connection pool server for PostgreSQL
* written by Tatsuo Ishii
*
- * Copyright (c) 2003-2017 PgPool Global Development Group
+ * Copyright (c) 2003-2021 PgPool Global Development Group
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose and without fee is hereby
static void initialize_shared_mem_objects(bool clear_memcache_oidmaps)
{
- int size,i;
+ size_t size;
+ int i;
+
/*
* con_info is a 3 dimension array: i corresponds to pgpool child
* process, j corresponds to connection pool in each process and k