Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8514123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:46:31+00:00 2026-06-11T04:46:31+00:00

I realize that trying to tamper with memory from another application or from the

  • 0

I realize that trying to tamper with memory from another application or from the OS is considered bad programming.

However, I do not understand Objective C, and I need to read 25 bytes from a fixed memory address into a variable, and then replace those 25 bytes with a different set.

I’m terrible with pointers and with what all the * and the & and the @ symbols mean.

I am attempting this in Mac OS X 10.8 (Mountain Lion), using XCode 4.4.1.

I’ve tried things like:

char *myPtr = (char*) 0x7FFA8000 // just an example, not the real memory address
char myString[] = *myPtr
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T04:46:32+00:00Added an answer on June 11, 2026 at 4:46 am

    If it’s 25 characters you might do it like this:

    char *myPtr = (char*) 0x7FFA8000; // pointer to arbitrary memory address
    char myString[26];                // buffer to copy data to
    memcpy(myString, myPtr, 25);      // do the copy
    myString[25] = '\0';              // make sure string is terminated
    

    To write back to the arbitrary address:

    char *myPtr = (char*) 0x7FFA8000; // pointer to arbitrary memory address
    char myString[26];                // buffer to copy data from
    memcpy(myPtr, myString, 25);      // do the copy
    

    Note that in both cases you’re just accessing memory within your own process’s virtual address space – you’re not reading/writing the memory of the OS or another process.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to realize a Vector class that allocates a block of memory,
I'm trying to do something really simple, but starting to realize that dates in
I realize that virtual template functions are not allowed in c++. Because of my
I realize that what I am trying to do isn't safe. But I am
I'm trying to change some system entities and I realize that on some system
I realize that the align.plots function from the ggExtra package has been deprecated and
I'm not sure the best way to describe what it is that I'm trying
I realize that there are other posts asking similar questions, but do not quite
I'm trying to build a Rails application that auto-corrects the spelling of a Rails
I realize that similar questions have been asked, but have spent hours trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.