diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2010-12-01 21:50:00 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2010-12-01 21:51:15 -0800 |
commit | 0ec869e8be853e19f8d98692a1867c5cddf9975b (patch) | |
tree | 0343dd0e90e153acabf2defde934a80a7aef59ea /tests/cp/link-no-deref | |
parent | a5207bb1391cb8e169bc6036eb036bb1a89cde89 (diff) | |
download | coreutils-0ec869e8be853e19f8d98692a1867c5cddf9975b.tar.xz |
sort: fix bug on 64-bit hosts with at least 32768 processors
* src/sort.c (MAX_MERGE): Avoid integer overflow when on a machine
with (say) 32-bit int and 64-bit size_t and when level == 15.
Without this fix, on such a machine with 32768 or more processors,
the level computation could overflow on large input, and this
would result in division by zero.
Diffstat (limited to 'tests/cp/link-no-deref')
0 files changed, 0 insertions, 0 deletions