News for hackers. Stuff that matters.
Re:The Tragedy of UCS-2 by tialaramex on Saturday August 03, 2019 @11:56AM (#20601014)
Complete recognition before processing. It's not the law, just a good idea, but you should do it anyway. In cryptography this lesson had to keep being learned. "Oh, I received this partial data, and I processed it, and then in the next packet I received the MAC and I realised the bad guys altered the data, oops"

Process whole strings, the meaning of a partial string may not be what you hope, even without fancy writing systems and Unicode encoding.

"Give the money to Steph" - OK, will do

"...enson" - Crap, OK, somebody chase Steph and get our money back, meanwhile here's James Stephenson's money

"... once he gives you the key" - Aargh. Somebody chase down James and get the key off him.

Re:The Tragedy of UCS-2 by lanstin on Saturday August 03, 2019 @12:27PM (#20601188)
Wow so interesting an idea. But so many streaming algorithms etc. people stick megabytes of crap into one framed message.