pr buffer overflow

2008-04-17 Thread Cristian Cadar
Hi Jim, we found a buffer overflow in pr, due to the invalid processing of backspaces and tabs. Here is a simple input that our tool generated: pr --e pr-bug.txt Another input, that crashes in glibc on my machine is: pr -e pr-bug-crash.txt Both pr-bug.txt and pr-bug-crash.txt are

Re: Enhancement request -- performance improvement

2008-04-17 Thread rh
Jim Meyering wrote: rh <[EMAIL PROTECTED]> wrote: Patches welcome, but it's already pretty well-optimized, since it uses fts. Sorry, fts? My TLA guessing is DOA these days. It's not a TLA, but rather the name of a function in the C library. Try "man fts". Note however that th

new snapshot, and a huge set of coreutils test results

2008-04-17 Thread Jim Meyering
I've received a large set of build and test results from a user who wishes to remain anonymous. That set includes configure/make/make-check results for 163 system/compiler/env combinations. There's no way I can triage all of that before release. Maybe others who care about some of the affected p

Re: Enhancement request -- performance improvement

2008-04-17 Thread Jim Meyering
rh <[EMAIL PROTECTED]> wrote: >> Patches welcome, but it's already pretty well-optimized, >> since it uses fts. > > Sorry, fts? My TLA guessing is DOA these days. It's not a TLA, but rather the name of a function in the C library. Try "man fts". Note however that the version used in coreutils co

Re: Enhancement request -- performance improvement

2008-04-17 Thread rh
Jim Meyering wrote: rh <[EMAIL PROTECTED]> wrote: Hello, Running du -sk on an apache disk cache containing 10GB of data and 30,000 directories and files I see du using maybe .03% of the cpu. It takes an hour for it to complete. If you have an old version, and depending on how it's

Re: Enhancement request -- performance improvement

2008-04-17 Thread rh
Yes, it is io bound. Darn it. I looked at iostat and saw right away. I first looked at vmstat but I was lulled into .believing. Eric Blake wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to rh on 4/16/2008 12:14 PM: | Hello, | Running du -sk on an apache disk cache containin

Re: dd skip bug?

2008-04-17 Thread Jim Meyering
Pádraig Brady <[EMAIL PROTECTED]> wrote: > Jim Meyering wrote: >> Pádraig Brady <[EMAIL PROTECTED]> wrote: >>> dd handles skip weirdly >>> >>> disk=/dev/sda8 >>> dd if=$disk bs=8M count=1 skip=1000 of=/dev/null #ok >>> dd if=$disk bs=8M count=1 skip=1000K of=/dev/null #reads whole disk! as >>> s

Re: dd skip bug?

2008-04-17 Thread Pádraig Brady
Jim Meyering wrote: > Pádraig Brady <[EMAIL PROTECTED]> wrote: >> dd handles skip weirdly >> >> disk=/dev/sda8 >> dd if=$disk bs=8M count=1 skip=1000 of=/dev/null #ok >> dd if=$disk bs=8M count=1 skip=1000K of=/dev/null #reads whole disk! as seek >> fails >> >> I had a 10s look at the source and