Coder Social home page Coder Social logo

Comments (4)

Fohlen avatar Fohlen commented on June 11, 2024

Placing it as a child of yguard makes no sense. It currently can be placed anywhere. However so, it should only be a child of the shrink task. Fix this.

from yguard.

thomasbehr avatar thomasbehr commented on June 11, 2024

Wait a second, the <attribute> element does affect renaming as well as shrinking. Even if renaming but not shrinking, yGuard is able to (or rather will) remove (optional) attributes from class files. While it may seem counter-intuitive to remove attributes when renaming but not shrinking, this actually make sense because removing attributes like SourceFile, LineNumberTable, LocalVariableTable actually serves the purpose of increasing the difficulty for reverse engineering which is the whole point of obfuscation.

Moreover, if <attribute> was only allowed for shrinking, we would need a "remove only attributes but no classes/members" mode for shrinking. Which in turn would require additional configuration for "obfuscation only" use cases.

I vote to keep <attribute> as is.

from yguard.

Fohlen avatar Fohlen commented on June 11, 2024

Judging from the source code, the attributesSections variable is currently (even before this PR) respected ONLY in the shrinker. I think we are talking about the attribute child element for the rename task then? Why are they named the same (confusing)?

from yguard.

Fohlen avatar Fohlen commented on June 11, 2024

The attribute section described is actually correct behavior as pointed out by @thomasbehr
Closing.

from yguard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.