aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/xml.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2012-08-13 16:24:18 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2012-08-13 16:36:35 +0300
commitf86e6ba40c9cc51c81fe1cf650b512ba5b19c86b (patch)
treed2d27785b7ee31de93b6f8efbe54647c003d7e61 /src/backend/utils/adt/xml.c
parentc1774d2c8193a322706f681dd984ac439d3a9dbb (diff)
downloadpostgresql-f86e6ba40c9cc51c81fe1cf650b512ba5b19c86b.tar.gz
postgresql-f86e6ba40c9cc51c81fe1cf650b512ba5b19c86b.zip
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.
Diffstat (limited to 'src/backend/utils/adt/xml.c')
0 files changed, 0 insertions, 0 deletions