summaryrefslogtreecommitdiff
path: root/src/rm.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-11-05 23:02:09 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-11-05 23:02:09 +0000
commit8a0f42dff9aa916bf2361a9347dafdd669a1f528 (patch)
tree78120fc60323d61ec8947a3a818712abde6c9bea /src/rm.c
parent5312181e5b23be99eb5cb2649f5f3d973133f17d (diff)
downloadcoreutils-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/rm.c')
0 files changed, 0 insertions, 0 deletions