Date: | Tue, 22 Aug 2017 13:26:18 +0200 |
---|---|
From: | Thomas Dullien <thomasdullien@xxxxxxxxxx> |
Subject: | Re: [DynInst_API:] where to find the code for handling switch() statements? |
Hey there, an example from 32-bit code where the default switch handling fails: .text:00412990         sub   esp, 50h .text:00412993         mov   eax, ___security_cookie .text:00412998         xor   eax, esp .text:0041299A         mov   [esp+50h+var_4], eax .text:0041299E         mov   edx, [esp+50h+arg_0] .text:004129A2         push  Âebx .text:004129A3         mov   ebx, ecx .text:004129A5         lea   eax, [edx-1] .text:004129A8         cmp   eax, 6     Â; switch 7 cases .text:004129AB         ja   Âloc_412F7E   Â; jumptable 004129B4 default case .text:004129B1         push  Âebp .text:004129B2         push  Âesi .text:004129B3         push  Âedi .text:004129B4         jmp   ds:off_412F90[eax*4] ; switch jump Enough of this for the moment, though :-)) -- I will check your branch now :-) Cheers, Thomas On Tue, Aug 22, 2017 at 1:24 PM, Thomas Dullien <thomasdullien@xxxxxxxxxx> wrote:
|
[← Prev in Thread] | Current Thread | [Next in Thread→] |
---|---|---|
|
Previous by Date: | Re: [DynInst_API:] where to find the code for handling switch() statements?, Thomas Dullien |
---|---|
Next by Date: | Re: [DynInst_API:] where to find the code for handling switch() statements?, Thomas Dullien |
Previous by Thread: | Re: [DynInst_API:] where to find the code for handling switch() statements?, Thomas Dullien |
Next by Thread: | Re: [DynInst_API:] where to find the code for handling switch() statements?, Thomas Dullien |
Indexes: | [Date] [Thread] |