aboutsummaryrefslogtreecommitdiff
path: root/src/backend/port/dynloader/netbsd.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-04-07 11:40:23 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2011-04-07 11:40:23 -0400
commit1471a147f09f737511945ac59ca3162469d1a0c0 (patch)
tree84156731e3ed9981ede37f473b7a00ef734f3d21 /src/backend/port/dynloader/netbsd.c
parent82a4f370735130418738f8cf0fb9155b1cff5e2b (diff)
downloadpostgresql-1471a147f09f737511945ac59ca3162469d1a0c0.tar.gz
postgresql-1471a147f09f737511945ac59ca3162469d1a0c0.zip
Fix SortTocFromFile() to cope with lines that are too long for its buffer.
The original coding supposed that a dump TOC file could never contain lines longer than 1K. The folly of that was exposed by a recent report from Per-Olov Esgard. We only really need to see the first dozen or two bytes of each line, since we're just trying to read off the numeric ID at the start of the line; so there's no need for a particularly huge buffer. What there is a need for is logic to not process continuation bufferloads. Back-patch to all supported branches, since it's always been like this.
Diffstat (limited to 'src/backend/port/dynloader/netbsd.c')
0 files changed, 0 insertions, 0 deletions