summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-04-08 15:18:29 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-04-08 15:18:29 +0000
commit00b51a3cf5847b1c1d23c2bdc068c1a1c8557021 (patch)
tree9cc7c7a4d339c22a626bd7de73b913b25e8d3c65 /regress
parentb42a153f2ead9d9ec3b0c08fbf863771074b7622 (diff)
When reallocating the line buffer, double the existing buffer
size instead of just incrementing it by LINEBUF_SIZE and use realloc() + memset() instead of calloc() + memcpy(). Prevents excessive resource usage when displaying very long lines. OK deraadt@, krw@ and otto@
Diffstat (limited to 'regress')
0 files changed, 0 insertions, 0 deletions