I think you've got other worries if malicious actors have that kind of influence over the internal memory usage of a running application.