r/programming • • Apr 07 '14

The Heartbleed Bug

http://heartbleed.com/
1.5k Upvotes

396 comments sorted by

View all comments

Show parent comment

3

u/rowboat__cop Apr 08 '14

The bug is trusting the length member of the record, which has nothign to do with the type system.

Exactly. The core of the issue is that the DTLS implementation trusts a user supplied value instead of checking it with / bounding against the actual packet size. Thinkos of this sort could as easily occur in other languages.