diff options
| author | Pádraig Brady <P@draigBrady.com> | 2022-12-28 14:04:19 +0000 |
|---|---|---|
| committer | Pádraig Brady <P@draigBrady.com> | 2022-12-29 14:15:54 +0000 |
| commit | 266b7cbc846f91e5f48085c7de68682f5841e2a0 (patch) | |
| tree | d5c1f183ed8622126e4d739bdf0901733913b74b /tests/misc/truncate-overflow.sh | |
| parent | maint: avoid recent syntax check failure (diff) | |
| download | coreutils-266b7cbc846f91e5f48085c7de68682f5841e2a0.tar.gz coreutils-266b7cbc846f91e5f48085c7de68682f5841e2a0.zip | |
wc: fix regression determining file size
* src/wc.c (wc): Use off_t rather than size_t
when calculating where to seek to, so that
we don't seek to a too low offset on systems
where size_t < off_t, which would result in
many read() calls to determine the file size.
* tests/misc/wc-proc.sh: Add a test case
sufficient for 32 bit systems at least.
* NEWS: Mention the bug fix.
Reported at https://bugs.debian.org/1027101
Diffstat (limited to 'tests/misc/truncate-overflow.sh')
0 files changed, 0 insertions, 0 deletions
