Step return lets x86 target run freely if the first instruction after the return is `jmp`

Offen
#421 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
cpp

Rechercherichtung

Reproduce the issue with the shown x86 call/jmp sequence by stepping into ___security_init_cookie and using step return. Trace the x86 step-return handling and compare its behavior with WinDbg. Done means step return stops at the expected return location instead of running freely when that location begins with jmp.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

bug DbgEng Adapter functionality Impact: Medium

For the following code,

_start:
004012d5  call    ___security_init_cookie
004012da  jmp     sub_401153

If I step into the function ___security_init_cookie, and then hit step return, the target will run freely, as if I send a Go command. There are several requirements for this issue:

  1. It must be an x86 binary
  2. The first instruction on the return address is an jmp

Note, this is actually a windbg bug -- that I can reproduce it directly in windbg.

Vorherrschende Sprache
C++
Sterne
331
Forks
33
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Vector35/debugger

Alle Issues in Vector35/debugger

Ähnliche Issues

Weitere Issues zu C++

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.