]> granicus.if.org Git - postgresql/commit
When passing query strings to workers, pass the terminating \0.
authorRobert Haas <rhaas@postgresql.org>
Wed, 20 Dec 2017 22:21:55 +0000 (17:21 -0500)
committerRobert Haas <rhaas@postgresql.org>
Wed, 20 Dec 2017 22:26:50 +0000 (17:26 -0500)
commitf94eec490b2671399c102b89c9fa0311aea3a39f
treecd255050f6ea0e8487311db0e9198a5a8742cf30
parent7d3583ad9ae54b44119973a9d6d731c9cc74c86e
When passing query strings to workers, pass the terminating \0.

Otherwise, when the query string is read, we might trailing garbage
beyond the end, unless there happens to be a \0 there by good luck.

Report and patch by Thomas Munro. Reviewed by Rafia Sabih.

Discussion: http://postgr.es/m/CAEepm=2SJs7X+_vx8QoDu8d1SMEOxtLhxxLNzZun_BvNkuNhrw@mail.gmail.com
src/backend/executor/execParallel.c