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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:17:07+00:00 2026-05-28T07:17:07+00:00

Whilst messing around with some x86 asm, I got to wondering about cases where

  • 0

Whilst messing around with some x86 asm, I got to wondering about cases where a bug has caused EIP to be set to 00000000, or another memory location that does not exist. Is it possible to catch these cases with SEH or similar error handling mechanisms and recover execution? (assuming the stack, heap and registers weren’t trashed)

  • 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-05-28T07:17:08+00:00Added an answer on May 28, 2026 at 7:17 am

    There’s no really good way to catch this before it happens, but one thing you can try is to inspect the stack (memory at ESP and/or EBP) and check for pointers to code.

    If the instruction that caused this was a call, you’re in luck – the dword at ESP will be the return address, pointing right after the offender.

    If it was a jmp, the chances are slimmer, but you can still look for possible traces of execution.

    The worst case is when this is caused by a ret with trashed ESP – usually at this point the stack is completely bogus. You can still check values of other registers, maybe one of them will contain a pointer which might give you some clues, and you scan the whole stack area for the stack frame patters, as described in this post.

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

Sidebar

Related Questions

Whilst implementing my first MVVM application in WPF, I've been wondering about the pros
I was messing around with std::ostringstream whilst looking at this question: sprintf in c++?
Whilst a few questions mention using Lua in conjunction with some other language, I
Whilst working on some generally horrible Javascript code this morning, I came across the
Whilst reading through the book The well grounded Rubyist, I came across some strange
Whilst practicing some TDD at work for an ASP.Net MVC project, I ran into
I'm writing a Python module for some C++ code using SIP. However whilst I
Whilst updating my code this morning, I caused an error - I replaced a
Whilst reviewing some Qt C++ code I came across this: class Foo { Q_OBJECT
Whilst trawling through some old code I came across something similar to the following:

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.