diff options
author | Robert Haas <rhaas@postgresql.org> | 2017-12-20 17:21:55 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2017-12-20 17:27:25 -0500 |
commit | 7be0d775a2e78d052c00f154741e9d8d76166fa3 (patch) | |
tree | e94f6613bf1bf9718bd845c27c5d4537518f880e /src/backend/access/gist/gistproc.c | |
parent | 72567f6174605c36ba520c80e71697d2601cac0a (diff) | |
download | postgresql-7be0d775a2e78d052c00f154741e9d8d76166fa3.tar.gz postgresql-7be0d775a2e78d052c00f154741e9d8d76166fa3.zip |
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
Diffstat (limited to 'src/backend/access/gist/gistproc.c')
0 files changed, 0 insertions, 0 deletions