Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- begin{algorithm}[tb]
- scriptsize $prod_m$: Manipulated Call Trace,
- scriptsize $prod_n$: Natural Call Trace \
- scriptsize $Delta_m$: Unaligned Call Trace in $prod_m$,
- scriptsize $Delta_n$: Unaligned Call Trace in $prod_n$, \
- scriptsize $f_{prod}$: $langle name,caller eip,parameter listrangle$,
- scriptsize $f_{Delta}$: $langle name,parameter listrangle$
- begin{algorithmic}[1] % enter the algorithmic environment
- caption{Differential Analysis on the API-Call Traces}
- label{algo:diff}
- $Delta_mleftarrow emptyset$,$Delta_n leftarrow emptyset$
- FOR{call $f_{prod_m}$ in $prod_m$}{
- FOR{call $f_{prod_n}$ in $prod_m$}{
- IF {isAligned($f_{prod_m}$,$f_{prod_n}$)}{
- GOTO FIND_ALIGNED
- }
- }
- $Delta_m=Delta_m bigcup f_{Delta_m}$
- }
- $Delta_n=prod_n$
- FIND_ALIGNED:
- $Delta_n= prod_m[0,index(f_{prod_n})]$
- ${f_{Delta_i}}$=Diff($Delta_m$,$Delta_n$)
- return ${f_{Delta_i}}$
- end{algorithmic}
- end{algorithm}
Add Comment
Please, Sign In to add comment