pgsql: Add runtime checks for number of query parameters passed to libp

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема pgsql: Add runtime checks for number of query parameters passed to libp
Дата
Msg-id E1T0urW-0000Vw-Ik@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Add runtime checks for number of query parameters passed to libpq functions.

The maximum number of parameters supported by the FE/BE protocol is 65535,
as it's transmitted as a 16-bit unsigned integer. However, the nParams
arguments to libpq functions are all of type 'int'. We can't change the
signature of libpq functions, but a simple bounds check is in order to make
it more clear what's going wrong if you try to pass more than 65535
parameters.

Per complaint from Jim Vanns.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/f86e6ba40c9cc51c81fe1cf650b512ba5b19c86b

Modified Files
--------------
src/interfaces/libpq/fe-exec.c |   23 ++++++++++++++++++++++-
1 files changed, 22 insertions(+), 1 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: More fixes for planner's handling of LATERAL.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Update time zone data files to tzdata release 2012e.