aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-11-10 16:08:23 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2011-11-10 16:09:16 -0500
commitfebda37fda469317f15b0acadfbdedab3d7dc793 (patch)
treeca3870684f316bd3674a857667c042faca5cc782 /src/backend/executor
parent37e66e75d8697de0fef74dad9cd9ae75845549b2 (diff)
downloadpostgresql-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')
0 files changed, 0 insertions, 0 deletions