By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,433 Members | 1,702 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,433 IT Pros & Developers. It's quick & easy.

Re: Dangerous UDP Checksum code ?!?

P: n/a
I think I've been redcoding a bit too much ;)

In redcode there is no such thing as temporarely variables created by the
compiler... ;)

So in recode any operation is done directly on whatever was specified ;)

So I guess I got a bit worried that direct operations could happen in high
level languages as well ;)

At least the solution I posted could be easily ported to for example
redcode/asm without any doubts/problems ;) :) So I am sticking with my
solution ! ;)

Bye,
Skybuck =D
Nov 8 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Nov 8, 3:46*pm, "Skybuck Flying" <BloodySh...@hotmail.comwrote:
At least the solution I posted could be easily ported to for example
redcode/asm without any doubts/problems ;) :) So I am sticking with my
solution ! ;)
If you want to spend the rest of your life writing mind-numbingly dumb
code, knock yourself out. For for the rest of us sane people, if this
is pretty gosh darned simple:

sum = (sum & 0xFFFF)+(sum >16);

Frankly, it's a miracle that anyone was able to misunderstand it. But
then, you never cease to impress.

DS
Nov 9 '08 #2

P: n/a
David Schwartz wrote:
On Nov 8, 3:46 pm, "Skybuck Flying" <BloodySh...@hotmail.comwrote:
>At least the solution I posted could be easily ported to for example
redcode/asm without any doubts/problems ;) :) So I am sticking with my
solution ! ;)

If you want to spend the rest of your life writing mind-numbingly dumb
code, knock yourself out. For for the rest of us sane people, if this
is pretty gosh darned simple:

sum = (sum & 0xFFFF)+(sum >16);

Frankly, it's a miracle that anyone was able to misunderstand it. But
then, you never cease to impress.
Skybly has made a multi-year career of Usenet vandalism.
On each newsgroup where I have seen hir, the pattern has been
the same: A few semi-reasonable posts to provide adequate
lubrication, followed by an affirmation of the surname (with
the obvious edit). The suggested remedy is to update your
killfiles; would that it were possible to set them on something
stronger than "Stun."

--
Eric Sosman
es*****@ieee-dot-org.invalid
Nov 10 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.