• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[OT] What kind of data is is returned by 'new' ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[OT] What kind of data is is returned by 'new' ?


  • Subject: [OT] What kind of data is is returned by 'new' ?
  • From: Dirk Stegemann <email@hidden>
  • Date: Wed, 6 Jul 2005 22:35:31 +0300

Hello all,

not sure which list is most appropriate, but this a general memory access question, so I put it in here where many experienced users lurk around... ;-]

If I recall correctly, Mac OS X provides a security feature to wipe memory pages allocated by a process; is this true?

When I allocate a buffer using

{
    char* buffer = new char [numberOfBytes];
}

then the buffer seems to contain random data.

Has this data advertantly been made "random" or is it some remaining "valid" data leftover from previous processes which should be considered an security issue?
Are there runtime / compile options to get "wiped" memory buffers by a call to 'new'?


Thanks in advance for any (links to) information regarding this subject!


Regards, Dirk Stegemann _______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: [OT] What kind of data is is returned by 'new' ?
      • From: Mark Bessey <email@hidden>
  • Prev by Date: Re: Help files in Xcode shows up as html and nothing to find
  • Next by Date: Tracking down type mismatches
  • Previous by thread: Re: Help files in Xcode shows up as html and nothing to find
  • Next by thread: Re: [OT] What kind of data is is returned by 'new' ?
  • Index(es):
    • Date
    • Thread