aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/advanced.source
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-11-10 16:08:14 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2011-11-10 16:09:01 -0500
commitcf22e851b6ae8737f3e767dffcadf1722fbb36a7 (patch)
tree28672f5691aa325398dd653d3b3df9498fa930cf /src/tutorial/advanced.source
parent409b8c75ba71fe6f3a7f9ccc094810966ef3a177 (diff)
downloadpostgresql-cf22e851b6ae8737f3e767dffcadf1722fbb36a7.tar.gz
postgresql-cf22e851b6ae8737f3e767dffcadf1722fbb36a7.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/tutorial/advanced.source')
0 files changed, 0 insertions, 0 deletions