r/programming • • Apr 09 '14

Theo de Raadt: "OpenSSL has exploit mitigation countermeasures to make sure it's exploitable"

[deleted] — view deleted post

2.0k Upvotes

661 comments sorted by

View all comments

Show parent comment

1

u/adrianmonk Apr 09 '14

Yeah, I'm basically arguing that in a language with bounds checking, some call would substitute for memcpy() but would do bounds checking. That would be an advantage because it would provide protection regardless of whether some other memory is freed. It's the distinction between checking that you ate copying some valid memory vs. checking that what you are copying is part of the intended object.

1

u/Beaverman Apr 10 '14

I don't quite understand your argument.

1

u/adrianmonk Apr 10 '14

I'm saying using a freed memory as a proxy for not-the-object-i-intended is better than nothing, but not as good as what you get with bounds checking.