]> granicus.if.org Git - postgresql/commit
Be a little more careful with the shift computations in QT2QTN and
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 3 Aug 2010 01:50:27 +0000 (01:50 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 3 Aug 2010 01:50:27 +0000 (01:50 +0000)
commit532a4c3531d65fef101d2564234f064883ea92ef
tree0daec981293802ac05efe7fa7b0e3bbe0c84682e
parent57641a165ffa7ef33c21c321a59104db7985df74
Be a little more careful with the shift computations in QT2QTN and
makeTSQuerySign.  The first of these is a live bug, on some platforms,
as per bug #5590 from John Regehr.  However the consequences seem limited
because of the relatively narrow scope of use of QTNode.sign.  The shift in
makeTSQuerySign is actually safe because TSQS_SIGLEN is unsigned, but it
seems like a good idea to insert an explicit cast rather than depend on that.
src/backend/utils/adt/tsquery_op.c
src/backend/utils/adt/tsquery_util.c