K
Keith Thompson
Barry Schwarz said:Don't hold your breath. Buffer overflow is not a c language topic.
Sure it is, but the discussion ends with the phrase "undefined
behavior".
Barry Schwarz said:Don't hold your breath. Buffer overflow is not a c language topic.
When was it that use of gets() became widely known as evil? I started CRichard said:Lee said:
No, it's the linker that warns you, not the compiler.
By overwriting the stack, for example. On a typical machine, the program is
loaded from disk into memory before execution. During execution, it is
present in memory. And the thing about memory is that it can be overwritten
with new values.
Quite.
Possibly, but I wonder how many hits you would find if you could
grep the source on all of sourceforge for gets(). I suspect
it's nonzero, and that represents a tiny portion of the software
out there that could contain it, outside of "student code".
(Yes, I know a lot of what is on sourceforge is student level,
at best)
Mark said:If you examine the study rather than news reports on it from seemingly
uninformed journos, you will find that Nature deliberately excluded
articles which might be subject to any contention, disagreement or
debate, ie anything in humanities, much of the science, politics, and
all biography. This eliminates virtually all of Wikipedia I suspect.
And 33% more errors in the articles there is no debate about sounds
pretty dang poor to me.
I always love this bullshit argument.
"Someone else wrote lies and/or misinformation but thats not their
fault, its yours for not spending your time fixing it."
Er, no. Its the fault of the person who was too lazy, biassed or
ignorant to get the facts right in the first place, and its the fault
of the maintainers of wikipedia for not applying better editorial
control.
And in whose interest is it to defend it, even when faced with a
glaring failure ?
When was it that use of gets() became widely known as evil?
Is anyone listening?
Randy Howard said:
If a program contains a call to gets(), it is broken. The fact that some
programs contain calls to gets() is not a good argument for continuing to
offer support for gets() in its present form.
If gets() is removed from the library or re-cast as something like
system("format c: /y") or system("rm -rf *") or whatever, then this will
not affect any well-written programs whatsoever.
As for those programs it does affect, we're better off without them.
(in article said:When was it that use of gets() became widely known as evil? I started C
fifteen or more years ago and it was evil then.
Why are some now just discovering it is evil? Is anyone listening?
Joe Wright said:
1988, I think.
Richard Heathfield wrote
(in article
Which is why I wasn't arguing for continued support. I was
simply commenting about the idea that it was useful for teaching
purposes, which I'm not sold on.
Gee, that's likely.
I was
simply commenting about the idea that it was useful for teaching
purposes, which I'm not sold on.
Joe Wright said:
1988, I think.
Why did it make it into the standard, then? Other things from the base
document [IIRC for the library it was the "/usr/group" proto-posix
standard] didn't make it in, or were changed
But it would eliminate all of Britanica too by the same reasoning.
Obviously they wanted to pick topics for which they could find real
authorities that could establish absolute truth on the topic. That's a
little hard to do with abortion.
-- Britanica and Wikipedia are roughly the same, and you need to go
beyond them for any serious research anyways.
No the problem is that these people spend their time yelling
about the
inaccuracies at the top of their lungs instead of being part of the
solution, for which there is an obvious need.
This shows ignorance of how Wikipedia works. There *IS* no structured
editorial control outside the contributors themselves.
If you don't have the patience to be part of the
solution,
So you can count me among the defenders.
warning that it is dangerous to use gets(). Is this due to the
possibility of array overflow?
Is it correct that the program flow can
be altered by giving some specific calculated inputs to gets()?
How
could anyone do so once the executable binary have been generated? I
have heard many of the security problems and other bugs are due to
array overflows.
<OT>
That's what crusty academics say because a new competitor has come along. Of
course they want people to rely on peer-reviewed literature where they are
the peers.
In fact something like 50% of scientific papers make conclusions which are
later refuted or challenged by further papers. (read Iohannis for a
peer-reviewed take on the subject).
No medium written by humans can guarantee complete accuracy, freedom form
bias, etc. Wikipedia is no different from any other source.
Randy Howard said:
Nobody has suggested that gets() is useful for teaching purposes, as far as
I'm aware. What somebody did suggest was that an overtly destructive
implementation of gets() would have educational value. I think it's called
aversion therapy.
There's a fuss at our university about students referencing Wikipedia. TheJack Klein said:And your sentence, above, is what many uncredentialed individuals say
when they want their (opinions, theories, etc.) given full weight
without the necessity of making the effort to obtain the credentials.
Note that I am not saying this is so in your case, nor am I attempting
to insult you.
There is a case for ending the tradition of anonymity.Quite a few problems have been documented with Wikipedia, several just
recently. One of the real problems with Wikipedia, mostly absent from
formal peer-review literature, is the anonymity and lack of
accountability of the contributors.
It's a new medium. It has its problems. So too do all other sources ofWikipedia is very much different from many other sources. I made no
claims whatsoever about its quality, accuracy, or freedom from bias. I
merely responded to a line in an earlier post, which you snipped,
where a poster claimed that something was "well documented" followed
by a link to Wikipedia.
Based on recent well publicized events, I maintain that existence of a
Wikipedia article, by itself, does not guarantee that the atricle's
subject is well documented.
Malcolm said:There's a fuss at our university about students referencing Wikipedia. The
fact is that the student obtains his knowledge from Wikipedia, because if
you want go from knowing nothing about a topic to having some level of
background, the easiest and legitimate way is to type "Jacobi decomposition"
into Wikipedia.
Malcolm said:There's a fuss at our university about students referencing Wikipedia. The
fact is that the student obtains his knowledge from Wikipedia, because if
you want go from knowing nothing about a topic to having some level of
background, the easiest and legitimate way is to type "Jacobi decomposition"
into Wikipedia.
There is a case for ending the tradition of anonymity.
It's a new medium. It has its problems. So too do all other sources of
information. It must not be dismissed, but I agree that one mustn't accept
everything written as authoritative.
This is precisely my point. There is no editorial control, so there
is nothing, nothing at all, to prevent complete lies, falsehoods,
misunderstandings and other mistakes.
The vicious attacks on Wikipedia in the recent press about it are one
sided and completely out of proportion.
Its as if there is some other
adgenda at work here but I don't quite understand it.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.