diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2011-11-10 16:08:23 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2011-11-10 16:09:16 -0500 |
commit | febda37fda469317f15b0acadfbdedab3d7dc793 (patch) | |
tree | ca3870684f316bd3674a857667c042faca5cc782 /src/backend/executor/nodeResult.c | |
parent | 37e66e75d8697de0fef74dad9cd9ae75845549b2 (diff) | |
download | postgresql-febda37fda469317f15b0acadfbdedab3d7dc793.tar.gz postgresql-febda37fda469317f15b0acadfbdedab3d7dc793.zip |
Avoid platform-dependent infinite loop in pg_dump.
If malloc(0) returns NULL, the binary search in findSecLabels() will
probably go into an infinite loop when there are no security labels,
because NULL-1 is greater than NULL after wraparound.
(We've seen this pathology before ... I wonder whether there's a way to
detect the class of bugs automatically?)
Diagnosis and patch by Steve Singer, cosmetic adjustments by me
Diffstat (limited to 'src/backend/executor/nodeResult.c')
0 files changed, 0 insertions, 0 deletions