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 8319389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:18:45+00:00 2026-06-08T22:18:45+00:00

I have stumbled on a problem that I hope you could help me understand.

  • 0

I have stumbled on a problem that I hope you could help me understand.

In my application i have a snapshot function that copies(ReadProcessMemory or memcpy, same result) all of its code + read only data sections and writes them to a file. I then have a verification function that reads the file and does a memcmp on what’s in the file and what’s on memory.

If I run the snapshot function and then run the verification function in the same session, it will keep saying that they are identical no matter how many times I run the verification.

When I take the snapshot in one session and then restart the app and run verification it seems completely random if the memory is identical or not, sometimes it works for 3-4 restarts of the application but sooner or later it doesn’t think that the data in the file is identical to the pe section code.

Here’s a link of the comparison of the pe code section between runs:

http://i45.tinypic.com/4kad7b.jpg

it’s always the same thing, it’s changing one character to another(in this case ? to an elevated 1) but from and to what character is always different.

Can anyone explain why this is happening? Should it be like this, if so why? or am I doing something wrong?

Note: I’ve tested this in both debug and release with and without a debugger attached.

  • 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-08T22:18:46+00:00Added an answer on June 8, 2026 at 10:18 pm

    For security reasons modern operating systems randomize in-memory layout of processes. The mechanism is called Address Space Layout Randomization (ALSR).

    In case of a vulnerability in an executable this makes it much more complicated to inject foreign code into the application by an attack.

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

Sidebar

Related Questions

I have stumbled upon an interesting problem/bug that I eventually solved, but the solution
I have finally stumbled across a problem that I can't already find the answer
I have an interesting problem that I need help with. I am currently working
I'm quite new to hibernate and have stumbled on this problem, which I can't
I have been playing about with canvas, but have stumbled across a problem. When
I have recently stumbled upon a problem with selecting relationship details from a 1
I've just started with db4o and I stumbled on to a problem. I have
Im quite new to Java and i have stumbled upon the following problem. Im
Question As stated, have you any tips to help grok / understand / get-your-head-around
I have stumbled across a problem where I am attempting to read in a

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.