|
|
Nieminen Mika wrote:
[code which seeks back deleted]
> What's so difficult here?
It is not difficult (it wouldn't be even in a version
which does not seek - just use fread into a malloced
buffer and double the size of that with realloc until done),
just in the past nobody cared about such problems.
For a test, try
find . -name '*.[ch]' -exec grep scanf {} \;
in the source tree of some program.
That's what gave us the internet worm and gives us
crashing MS stuff every day, and "Smashing the stack for
fun and profit" (title of a paper by AlephOne).
The BSD guys claim to have cleaned this kind of bugs out
of their code, otherwise I believe the whole world is still
messy.
Ralf
Post a reply to this message
|
|