Comment Comment by a1a Yes, if I interpret your suggestion correctly. How would you know that the attacker have not manipulated the size parameter?That's the best case. Worst case you end up with a memory vulernability (see heartbleed https://xkcd.com/1354/) parent a1a 7 years ago
That's the best case. Worst case you end up with a memory vulernability (see heartbleed https://xkcd.com/1354/)