Re: Dangerous UDP Checksum code ?!?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Skybuck Flying

    Re: Dangerous UDP Checksum code ?!?

    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


  • David Schwartz

    #2
    Re: Dangerous UDP Checksum code ?!?

    On Nov 8, 3:46 pm, "Skybuck Flying" <BloodySh...@ho tmail.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

    Comment

    • Eric Sosman

      #3
      Re: Dangerous UDP Checksum code ?!?

      David Schwartz wrote:
      On Nov 8, 3:46 pm, "Skybuck Flying" <BloodySh...@ho tmail.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
      esosman@ieee-dot-org.invalid

      Comment

      Working...