2
1
"Consider the following scenario:
- User launches MyApp.
- User closes MyApp.
- User launches SomeOtherApp.
My question: If SomeOtherApp also dynamically allocates memory is it possible that one of the buffers returned by the OS will contain the sensitive data placed there by the (now closed) invocation of MyApp?
Or are the contents of RAM treated as part of the sandbox in which an app runs?"
Someone asked me that question recently and now I am intrigued. What does happen to the RAM once the program or app closes? Will any data be retained by a buffer, or will there be any references to the data in RAM even after the program closes?
Main reson for this question is regarding security concerns, lets say someone collects data from a remote server and displays it using a custom program. Once that program closes, I want to make sure that nothing can access the data that I was displaying from the remote DB.
I am mostly concerned with apps in regard to iPhones and other smart phones, but RAM is RAM and I think that it would apply to most other fields.
in Windows there is Zero Page Thread which zeros all memory before it will be used again: http://blogs.msdn.com/b/tims/archive/2010/10/29/pdc10-mysteries-of-windows-memory-management-revealed-part-two.aspx I have no idea if MacOS/iOS have something similar.
– magicandre1981 – 2013-07-18T15:36:02.753:P (bleh windows...) OK. Thanks for that, good to keep in mind! – CaptJak – 2013-07-18T15:39:28.340