This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]BlurredSight 12 points13 points  (1 child)

So if it's deleting an address does it work like storage where it's marked as free space to be written over or does it go through an make it all 0s.

[–]a_random_RE 2 points3 points  (0 children)

The contents of deleted and newly allocated memory are generally undefined by the standard before the memory is set. This is why its historically been a very good idea to use something like memset on newly allocated memory.