[Soot-list] jbco_iii and line numbers

Nate nate at n4te.com
Mon Mar 3 05:37:45 EST 2014


Hi Steven,

Thank you very much for the explanation.

Cheers!
-Nate



On Sat, Mar 1, 2014 at 7:21 PM, Steven Arzt <Steven.Arzt at cased.de> wrote:

> Hi Nate,
>
>
>
> line numbers are stored in tages associated with Units. So the simple rule
> is to always patch the tag collection together with the unit chain. In
> other words: Whenever a transformer modifies the unit chain, it must also
> make sensible adaptions to the tag collection of the retained or newly
> created units. What "adaption" means heavily depends on the semantics of
> your transformer. If I for instance create a code inlining transformer, I
> have to decide whether I want to copy over the original line numbers of the
> inlined code or whether I want to leave them out by purpose (or assign some
> other sensible value).
>
>
>
> I know that this is not a clear how-to answer, but I hope that it helps
> nevertheless.
>
>
>
> Best regards,
>
>   Steven
>
>
>
>
>
> M.Sc. M.Sc. Steven Arzt
>
> Secure Software Engineering Group (SSE)
>
> European Center for Security and Privacy by Design (EC SPRIDE)
>
> Mornewegstraße 32
>
> D-64293 Darmstadt
>
> Phone: +49 61 51 16-75426
>
> Fax: +49 61 51 16-72118
>
> eMail: steven.arzt at ec-spride.de
>
> Web: http://sse.ec-spride.de
>
>
>
>
>
>
>
> *Von:* soot-list-bounces at sable.mcgill.ca [mailto:soot-list-bounces at sable.
> mcgill.ca] *Im Auftrag von *Nate
> *Gesendet:* Freitag, 28. Februar 2014 11:42
> *An:* Soot list
> *Betreff:* Re: [Soot-list] jbco_iii and line numbers
>
>
>
> Sorry, I should have also said that I'm interested in any information on
> how IndirectIfJumpsToCaughtGotos might be modified to preserve line
> numbers. It isn't a lot of code, but it's pretty tricky and I'm not yet
> very familiar with Soot.
>
> Thanks!
>
> -Nate
>
>
>
> On Fri, Feb 28, 2014 at 11:12 AM, Nate <nate at n4te.com> wrote:
>
> Hi,
>
> Is it possible to use jbco_iii without mucking up line numbers in
> exception stacktraces?
>
> Thanks!
>
> -Nate
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20140303/f7072696/attachment-0001.html 


More information about the Soot-list mailing list