diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-11-05 23:02:46 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-11-05 23:02:46 +0000 |
commit | 3e0f7c5dc39050b84ce17b4baf6b1b23b426d77f (patch) | |
tree | 32d95935f5ef347ad131a2a5b99869e1b0e92b2e | |
parent | 8a0f42dff9aa916bf2361a9347dafdd669a1f528 (diff) | |
download | coreutils-3e0f7c5dc39050b84ce17b4baf6b1b23b426d77f.tar.xz |
* src/sort.c: Fixx size_t and alloca bugs.
-rw-r--r-- | ChangeLog | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -1,7 +1,18 @@ -2004-11-03 Paul Eggert <eggert@cs.ucla.edu> +2004-11-05 Paul Eggert <eggert@cs.ucla.edu> * Version 5.3.0. + * src/sort.c (inittables, sort_buffer_size, getmonth, mergefps, + first_same_file, merge, sort, main): Use size_t for indexes into arrays. + This fixes some unlikely havoc-wreaking bugs (e.g., more than INT_MAX + temporary files). + (getmonth, keycompare, compare): Rewrite to avoid need for alloca, + thus avoiding unchecked stack overflow in some cases. As a side + effect this improve the performance of "sort -M" by a factor of 4 + on my benchmarks. + +2004-11-03 Paul Eggert <eggert@cs.ucla.edu> + * src/stty.c: Include "vasprintf.h" since we use vasprintf now. * src/Makefile.am (check-AUTHORS): Don't assume \? works in a sed |