News for hackers. Stuff that matters.
Re:There’s a Hole in the Bottom of the C: Effectiveness of A... by nneonneo on Wednesday November 14, 2018 @05:08PM (#18454559)
You're referring to canaries, which are special values used to detect if overflows occur.

Canaries are usually checked on heap deallocation (resp. stack canaries are checked on stack frame deallocation, i.e. function return). Checking them at any other time is expensive and incurs high overhead. They also don't catch all overflows - an overflow with an attacker-controlled index could easily skip the canary and overwrite whatever lies past it.

The problem of memory bounds checking is solvable if you decide to forego memory, processing time, and/or compatibility with existing code. Trying to achieve memory safety while maintaining those three properties is very hard.

Re:There’s a Hole in the Bottom of the C: Effectiveness of A... by ElBarto on Thursday November 15, 2018 @03:38AM (#18457762)
There's no way around it.

What I described is what higher-level languages do if they provide this sort of protection and it's what must do done if such protection is required.

Re:There’s a Hole in the Bottom of the C: Effectiveness of A... by nneonneo on Thursday November 15, 2018 @09:03AM (#18459265)
Most higher-level languages simply perform bounds checks rather than relying on canaries for safety. Although they can be combined, if your canaries are hit it means your HLL isn’t doing a good enough job of enforcing bounds.
Re:There’s a Hole in the Bottom of the C: Effectiveness of A... by ElBarto on Thursday November 15, 2018 @10:54AM (#18460222)
That's what I wrote...