diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2015-10-04 14:16:59 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2015-10-04 14:17:24 -0400 |
commit | a8168fbcbbb3ed88c19ca2b648d737e8d90f37b1 (patch) | |
tree | 5397ba9e3b2a5a2cf2ca3ccccfe090ff30f1c3dd /src/backend/executor/nodeHashjoin.c | |
parent | 3a68e0a101bc80d6e14f743152017aa4d9b4bf0c (diff) | |
download | postgresql-a8168fbcbbb3ed88c19ca2b648d737e8d90f37b1.tar.gz postgresql-a8168fbcbbb3ed88c19ca2b648d737e8d90f37b1.zip |
Fix possible "invalid memory alloc request size" failure in nodeHash.c.
Limit the size of the hashtable pointer array to not more than
MaxAllocSize. We've seen reports of failures due to this in HEAD/9.5,
and it seems possible in older branches as well. The change in
NTUP_PER_BUCKET in 9.5 may have made the problem more likely, but
surely it didn't introduce it.
Tomas Vondra, slightly modified by me
Diffstat (limited to 'src/backend/executor/nodeHashjoin.c')
0 files changed, 0 insertions, 0 deletions