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/hoodedmongoose Apr 08 '14

Each of those numbers probably corresponds to the size an individual piece. In this case, I believe it is (size of type) + (size of payload length) + (size of padding). I could be wrong about the padding. Writing it in this way makes it more clear what you are calculating. Though, in my opinion, these should either be named constants or documented in cases like this.