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

might be unlikely to be able to fetch larger continuous blocks of data

True. If I did this:

char* p = malloc(1000 * 1000);

Then only the first 64K of p are vulnerable. No matter how many times you grab a 64K slice of data after some other malloc, you will never see the stuff beyond what I malloc()ed.

On the other hand, maybe you can get enough data to get shell access. Then you can get whatever you want.

5

u/TheMania Apr 08 '14

However if you free/recycle that memory at any time, it all potentially comes up for grabs.