3 ms·
While that's a better way to do that, if the canary had a null at the beginning it would effectively render string off-by-one errors useless, since now they can
by mukesh610 5y ago
While that's a better way to do that, if the canary had a null at the beginning it would effectively render string off-by-one errors useless, since now they can't even be exploited to crash a program. Again, this should not be used as an excuse to ignore string off-by-one errors since these errors might be triggered in other architectures where the canary isn't guaranteed to start with a null.