What type of memory does my fopen() pointer point to?

I'm trying to wrap my head around how this works under the hood.

If I call fopen() on windows for example, it gives me a pointer to a FILE struct. Where is this struct stored? Opening it in a debugger and looking at the address returned it shows it is located inside the MSVCRT module.

Is there some memory region inside the memory of the library where this stuff is stored? Is there any documentation or resources I can read up on regarding my question?

Thanks in advance!

submitted by /u/Apathly
[link] [comments]

from hacking: security in practice https://ift.tt/PL1CulB

Comments