I just ran this on the latest coreutils:
scan-build -o clang ./configure
scan-build -o clang make
and it flagged a possible problem in wc
where it could spin if it got a read error
on a large file containing file names to process.
I think the following may address this:
diff --git a/src/wc.c
Pádraig Brady wrote:
On 17/12/10 16:11, Pádraig Brady wrote:
I also notice more warnings and a possible
uninitialized stat buf in cp.c.
I'll have a look at these later...
That was another buglet fixed with:
commit b0cce8793c0b7a305f0f336e2f563ea941c44a92
Author: Pádraig Brady