]> granicus.if.org Git - postgresql/commit
Tweak ArrayCount() to forestall possible access to temp[-1]. Problem
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 29 Jan 2003 01:28:33 +0000 (01:28 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 29 Jan 2003 01:28:33 +0000 (01:28 +0000)
commit5fdb142f1653ab922891d231befc575e672b90b8
tree2c84a773dfbe3dd4823228da442a778278ea9398
parent3cb282f3e61e002456b0575c0baa92b893ecb8f0
Tweak ArrayCount() to forestall possible access to temp[-1].  Problem
cannot actually happen at present because ArrayCount() is only called
on strings beginning with '{', but seems best to prevent it going forward.
Per report from Yichen Xie.
src/backend/utils/adt/arrayfuncs.c