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

  • SEARCH
  • Home
  • 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 8663509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:00:04+00:00 2026-06-12T17:00:04+00:00

Does anybody have a link to a documentation what exactly is randomized in what

  • 0

Does anybody have a link to a documentation what exactly is randomized in what cases for latest Mac OS (10.7) and iOS (6.0)?

I mean. I want to see a list (something like)

  • Code segment (in a case A,B,C)

  • Stack (always)

  • Heap

  • Data segment (never)

Preferably with how many bits of randomization each thing has.

All I can find is something like: “MacOS Lion implements full ASLR” and in other places “full ASLR is implemented different ways for different operation systems”, which is obviously not very informative.

  • 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-12T17:00:06+00:00Added an answer on June 12, 2026 at 5:00 pm

    The list you are looking for can easily be generated by you, as follows:

    int global_j = 0;
    
    void main ()
    {
    
        char *h = malloc(10);
        int j = 0;
    
        printf ("Globals are : %p, text is %p, stack is %p, heap is %p\n",
            &global_j, main, &j, h);
    
    }
    

    On mountain lion, this yields:

    bash-3.2# ./a
    Globals are : 0x10fa55020, text is 0x10fa54eb0, stack is 0x7fff501ab864, heap is 0x7f9b294000e0
    bash-3.2# ./a
    Globals are : 0x106bbe020, text is 0x106bbdeb0, stack is 0x7fff59042864, heap is 0x7f9752c000e0
    bash-3.2# ./a
    Globals are : 0x108673020, text is 0x108672eb0, stack is 0x7fff5758d864, heap is 0x7fecc34000e0
    bash-3.2# ./a
    Globals are : 0x1059d2020, text is 0x1059d1eb0, stack is 0x7fff5a22e864, heap is 0x7f8f81c000e0
    

    Showing ample randomization on all (note that due to alignment restrictions the offset within the page doesn’t get randomized, but you still get some 16-20-bit randomization, as implied by the 4-5 hex digits which change).

    • Kernel: As of Mountain Lion and iOS6, the kernel is randomized by “sliding” it with a value of vm_kernel_slide, on load. Not all vm pages are slid in this way, but for the most part this works by storing some constant value (which is also readable by System call #439, kas_info, on ML but not on iOS: Apple is struggling hard to keep the randomization value secret, and not leak it when reporting kernel addresses, so jailbreakers won’t figure out where they can jump to/overwrite – which works for them most of the time)

    Hope this helps,

    TG

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

Sidebar

Related Questions

does anybody have any idea what's does this mean: onLoad=MyOnLoad? thanks
Does anybody have a link for a tutorial on how to write JRE junit
Does anybody know or have a link to how I set up psake to
Does anybody have a Unicode to Hexadecimal code points (as seen in the link
Does anybody have a link to the Don Syme F# demo showing soccer balls
Does anybody have experience build app with PhoneGap's Build Service? I followed the steps
Does anybody have any experience with as3-spod? I downloaded the source code from github
does anybody have any experience writing up a offline data storage & access app
Does anybody have a good analogy (or, failing that, a good resource) for describing
Does anybody have any advice on working in a Date Driven Development environment? Essentially,

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.