OSDN Git Service

Tighten up overflow check in path_recv, pursuant to code review inspired
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 12 May 2004 22:38:44 +0000 (22:38 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 12 May 2004 22:38:44 +0000 (22:38 +0000)
commit4d924bdb462106f152b28ab7d66fcf5e5253e587
treecd3b4e2d59c45349d13f73b9612bb97786014b38
parent0a54441cbfdecbf4615a0c0ea537d458587056fe
Tighten up overflow check in path_recv, pursuant to code review inspired
by Ken Ashcraft's report.  I think there is no actual bug here since if
the int32 value does wrap a little bit, palloc will still reject it.
Still it's better that the code be obviously correct.
src/backend/utils/adt/geo_ops.c