[Soot-list] Problem with Jasmin directives
Almo
aaloanmiftah at yahoo.com
Tue May 7 21:47:21 EDT 2013
Not sure that'd be a good idea, try this,
emit(".class " + Modifier.toString(modifiers) + " \"" + slashify(sootClass.getName()) + '\"');
Al
________________________________
From: Saswat Anand <saswat78 at gmail.com>
To: Almo <aaloanmiftah at yahoo.com>
Cc: Patrick Lam <plam at sable.mcgill.ca>; "soot-list at sable.mcgill.ca" <soot-list at sable.mcgill.ca>
Sent: Tuesday, May 7, 2013 7:42 PM
Subject: Re: [Soot-list] Problem with Jasmin directives
Patrick, thanks very much!
Apparently soot is not currently quoting the class names. So here is
what fixed the problem for me.
public abstract class AbstractJasminClass
- emit(".class " + Modifier.toString(modifiers) + " " +
slashify(sootClass.getName()));
+ emit(".class " + Modifier.toString(modifiers) + " " +
Scene.v().quotedNameOf(slashify(sootClass.getName())));
public class Scene //extends AbstractHost
+ rn.add("is");
I wonder if it is a good fix --- I am not sure about the repercussions
of adding "is" to the set of reserved words in the soot.Scene.
Saswat
On Tue, May 7, 2013 at 6:25 PM, Almo <aaloanmiftah at yahoo.com> wrote:
> I think I had submitted a patch for that a while back (I remember working on
> it because a project of mine had issues similar tot his with Jasmin).
>
> Al
>
> ________________________________
> From: Patrick Lam <plam at sable.mcgill.ca>
> To: soot-list at sable.mcgill.ca
> Sent: Tuesday, May 7, 2013 7:23 PM
> Subject: Re: [Soot-list] Problem with Jasmin directives
>
> On 05/07/13 21:22, Saswat Anand wrote:
>> Hi,
>>
>> Soot fails to generate .class file for a class if it is named "is".
>> That happens because, "is" a directive in Jasmin, and as a result
>> Jasmin fails for such a class.
>>
>> There are a few similar other directives such as "to", "from". I guess
>> that Soot may fail all such classes. This problem prevents analyzing
>> obfuscated classes.
>>
>> I guess that this problem needs a fix to the grammar (i.e.,
>> parser.cup). I would appreciate if somebody familiar with that .cup
>> file could look into this or help me fix this.
>
> I thought that our Jasmin output was supposed to quote names of classes
> and that our modified version of Jasmin should accept quotes. Does it
> not do that?
>
> pat
>
>
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>
>
>
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20130507/7f214873/attachment.html
More information about the Soot-list
mailing list