POV-Ray : Newsgroups : povray.bugreports : String literals can only be 125 characters long : Re: String literals can only be 125 characters long Server Time
27 Sep 2024 18:37:52 EDT (-0400)
  Re: String literals can only be 125 characters long  
From: Ralf Muschall
Date: 7 Jun 1999 18:56:10
Message: <375C4DCE.70398428@t-online.de>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.