Fixed
while (buf[total_written + seek_size] == 0)
++seek_size;
to
while (total_written + seek_size < size && buf[total_written +
seek_size] == 0)
++seek_size;
Carefully tested, seems work.
--
WBR,
Roman Rybalko
>From ada2eb4ee23a8a87f19ce0f073c177eaf2bf8210 Mon Sep 17 00:
On 07/28/2011 01:16 PM, Jim Meyering wrote:
> For some reason, sort is now very slow here (Fedora 15, x86_64, with
> little free RAM), even for tiny inputs, but only some of the time,
> and not when I set OMP_NUM_THREADS=1.
> (I noticed because ./bootstrap was taking *forever*, traced it,
> which s
For some reason, sort is now very slow here (Fedora 15, x86_64, with
little free RAM), even for tiny inputs, but only some of the time,
and not when I set OMP_NUM_THREADS=1.
(I noticed because ./bootstrap was taking *forever*, traced it,
which showed gnulib-tool taking all the time, then traced gnu