News for hackers. Stuff that matters.
Re:The hijacking flaw that lurked in Intel chips is worse th... by pabl0rg on Sunday May 07, 2017 @02:13AM (#14284142)
If you access a memory location beyond the end of the string, you can get all sorts of unexpected behavior. The string's length is something you'll pretty much always need to take into account.
Re:The hijacking flaw that lurked in Intel chips is worse th... by DaiPlusPlus on Sunday May 07, 2017 @02:37AM (#14284205)
Many libraries and systems (e.g. Win32) just go with null-terminated strings and their functions don't accept a length argument at all - so I wonder if some people never store the length simply because they don't believe they'll ever need it.