Hacker News new | past | comments | ask | show | jobs | submit login
Funny IE7 bug: Can't set cooke if domain uppercase and odd number of chars. (microsoft.com)
16 points by axod on Jan 10, 2009 | hide | past | favorite | 7 comments



How the hell...


The only thing I can think is maybe they are processing characters 2 at a time, and messing up on the end case if there's an odd number of characters. Not sure how the uppercase comes into it though, pretty obscure.


Some demented version of .toLower() done in C, maybe? Apparently the bug first appeared in WinXP and IE6, so they could have been working without some of the better-tested library functions included with the platform now.

(Edit: can't think of a sufficiently subtle off-by-1 error for a function that does just this. Microsoft would never hire me.)


I'm not an expert in C, but I would think that would die in an obvious fashion if domain had an odd number of chars.


Regular expression slip-up, maybe? Or, more likely, a weird bug in their regular expression engine?


how exactly did all those PHDs screw up the code to come up with that bug


This same problem used to plague notepad.exe - it mistakes the text for unicode and processes 16 bits at a time instead of 8.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: