Thursday, June 15, 2006

Break Windows Notepad

This is a funny way to break windows Notepad, according to a blog here. And no, this is completly harmless, and can be a little fun on a boring afternoon. Just fire up notepad, and type in the text "this app can break". Save the file somewhere, and open it in notepad again. You will see a bunch of garbage. Apparently the flaw is to do with the win32 API IsTextUnicode(), which passes this string off as unicode.

No comments: