/. WTF



  • In case you haven't heard already, Slashdot just had a little integer overflow problem in their database...



  • So what?  There's no "wtf" about forgetting to update a table, and they're not handling it in a "wtf" manner.


  • ♿ (Parody)

    The same happened to me fairly recently on another website, though not quite at the 24-bit level. When coding an ASP-based message board, it never really occured to me that a VBScript CInt() would convert the string to a 16-bit integer ... nor that the site would ever reach 32,768 messages. Whoops.

    Easy fix though ... just S/R CInt() To CLng() ...



  • [quote user="edifyyo"]So what?  There's no "wtf" about forgetting to update a table, and they're not handling it in a "wtf" manner.
    [/quote]

    I agree, this isn't a wtf.  They made the initial change well in advance, overlooked making it in another location, and are now handling it in a simple, straightfoward manner.

    Tell me, if this is the wtf, how would you change it and make it a non-wtf?

    (Oh yes, and I don't actually read slashdot, so I'm not just being some overly-defensive fanboy.)
     



  • If anything that's quite the achievement. 16 MILLION visitor comments in their database? Wow!



  • Not a WTF, agreed (OP)

    Point taken - I guess it was more of a "even the best of us screw up sometimes" example than a real WTF, but I thought that there might be some here who might appreciate it.

    And while I haven't overflowed an integer of quite that order of magnitude, I also have been bitten by CInt vs. CLng in ASP, like Alex, so this echoed an early WTF of mine.

    /cowboy_k goes back to lurking
     

     



  • /set lurk="off"

    heh - apparently I wasn't the only one to think "WTF?" about the /. situation...

    /set lurk="on"



  • "2^24 comments ought to be enough for anyone" -- CmdrTaco

    Haha!
     



  • The last comment before overflow was:

        Are you sure about that?[...]

    ^_^ 



  • [quote user="dhromed"]

    The last comment before overflow was:

        Are you sure about that?[...]

    [/quote]

    Actually, 92% of all Slashdot posts start with that...  :)



  • [quote user="R.Flowers"][quote user="dhromed"]

    The last comment before overflow was:

        Are you sure about that?[...]

    [/quote]

    Actually, 92% of all Slashdot posts start with that...  :)

    [/quote]

    92% of /. posts start like that, but 99% of them end with one of:

    I for one welcome our new integer overflow overlords

    1 Integer overflow

    2 ???

    3 Profit!

    In soviet russia, integer overflows YOU


Log in to reply