diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-11-05 23:02:09 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-11-05 23:02:09 +0000 |
commit | 8a0f42dff9aa916bf2361a9347dafdd669a1f528 (patch) | |
tree | 78120fc60323d61ec8947a3a818712abde6c9bea /src/dirname.c | |
parent | 5312181e5b23be99eb5cb2649f5f3d973133f17d (diff) | |
download | coreutils-8a0f42dff9aa916bf2361a9347dafdd669a1f528.tar.xz |
(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.
Diffstat (limited to 'src/dirname.c')
0 files changed, 0 insertions, 0 deletions