aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/basics.source
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-03-28 17:09:51 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2020-03-28 17:09:51 -0400
commit5feb3d0b3f6bf2f65757acbad6578cc8318f1f70 (patch)
tree75f31f911998ed44ca81755d02e2f534834a4e34 /src/tutorial/basics.source
parent00a0a428ef503d50b74b8a08d6365a4a0ce04c14 (diff)
downloadpostgresql-5feb3d0b3f6bf2f65757acbad6578cc8318f1f70.tar.gz
postgresql-5feb3d0b3f6bf2f65757acbad6578cc8318f1f70.zip
Protect against overflow of ltree.numlevel and lquery.numlevel.
These uint16 fields could be overflowed by excessively long input, producing strange results. Complain for invalid input. Likewise check for out-of-range values of the repeat counts in lquery. (We don't try too hard on that one, notably not bothering to detect if atoi's result has overflowed.) Also detect length overflow in ltree_concat. In passing, be more consistent about whether "syntax error" messages include the type name. Also, clarify the documentation about what the size limit is. This has been broken for a long time, so back-patch to all supported branches. Nikita Glukhov, reviewed by Benjie Gillam and Tomas Vondra Discussion: https://postgr.es/m/CAP_rww=waX2Oo6q+MbMSiZ9ktdj6eaJj0cQzNu=Ry2cCDij5fw@mail.gmail.com
Diffstat (limited to 'src/tutorial/basics.source')
0 files changed, 0 insertions, 0 deletions