Skip to content

Releases

9.4.1

Choose a tag to compare

@piazzesiNiccolo-GS piazzesiNiccolo-GS released this 28 Oct 08:25

Version 9.4.1

Improved

  • Greatly improved performance for generalization of deeply nested CompositeIntegerValues.
  • Improved performance for InitializedClassUtil.isInstanceOf.

API improvements

  • Add JvmStaticFieldTaintSource to specify taint sources for static field reads.
  • TaintSource is now an interface, so it can be implemented by taint sources other than methods.
  • JvmTaintSource has been renamed to JvmMethodTaintSource.
  • The fields of JvmMethodTaintSource are now private. Use the getSignature, getTaintsThis, getTaintsReturn, getTaintArgs, and getTaintGlobals methods instead.
  • Add JrtDataEntry and JrtDataEntrySource.

Bugfixes

  • Fix concurrent dex conversion through one Dex2Pro instance corrupting the class pool.

9.4.0

Choose a tag to compare

@Malika-B Malika-B released this 24 Aug 09:25

Version 9.4.0

Java support

  • Support Java 27.

Kotlin support

  • Add support for inner classes and inner enums used as annotations argument in Kotlin metadata.
  • Add support for processing Kotlin 2.4 metadata.

API improvements

  • Add KotlinAliasReferenceFixer to update Kotlin type alias references (aliasName) after their declaration container is renamed. Run it after ClassReferenceFixer.
  • MemberRemover will now throw an exception if you attempt to collect a member from a class for removal while you're still collecting members from another class. You must commit member removal for the current class before collecting members from another class.
  • InitializerEditor.addStaticInitializerInstructions returns the created or modified static initializer.
  • ClassUtil supports optionally quoting identifiers with spaces when converting names, types or descriptions from internal to external.
  • Avoid changing invokespecial to invokeinterface in MethodInvocationFixer when a default super interface method is present.
  • Add new InterfaceMethodReferenceFixer that patches MethodRefConstants to InterfaceMethodRefConstants in visited classes when the reference is an interface method.
  • Add reset method to MemberRemover.
  • Add processing flags helper methods to Processable.
  • Add isLeader and isFallThrough methods to the BranchTargetFinder. These methods can be used to determine if an offset is the leader of a basic block or the fallthrough of a conditional branch respectively.
  • Deprecate methods of CallGraphWalker using a default depth and width.

Improved

  • Improve performance of generalization steps in partial evaluation.
  • Improve CallGraph to store incoming and outgoing calls in a deterministic order.

Bugfixes

  • Fix reference initialization for type aliases defined in file facades with a custom JvmPackageName.
  • Fix PKCS7OutputStream incorrectly handling escaped quotes certificates.
  • Fix ReferenceTracingInvocationUnit treating the current reference inside constructors as initialized prior to the invocation of the super or object initializer.
  • Fix NullPointerException in ClassReferenceFixer for Kotlin coroutine suspend lambdas by resolving their referencedMethod to invokeSuspend.
  • Fix reference initialization for Kotlin enum entries annotations.

9.3.2

Choose a tag to compare

@piazzesiNiccolo-GS piazzesiNiccolo-GS released this 17 Mar 16:09
e728e2d

Version 9.3.2

Upgrade consideration

  • The proguardCORE test fixtures module now requires Java 11.

Java support

  • Update maximum supported Java class version to 70.65535 (Java 26).

API improvements

  • Allow referencedClass to be provided in ClassBuilder.addAndReturnField.
  • Add name property to ClassModel.

9.3.1

Choose a tag to compare

@rubenpieters rubenpieters released this 18 Feb 15:58
43523cb

Kotlin support

  • Add support for processing Kotlin 2.3 metadata.

9.3.0

Choose a tag to compare

@piazzesiNiccolo-GS piazzesiNiccolo-GS released this 03 Feb 08:35

API changes

  • Deprecate DominatorCalculator.dominates method, introduce DominatorCalculator.maybeDominates returning an Optional<Boolean> instead of boolean.
  • Support Kotlin experimental annotation metadata v2.

The following changes will require code updates:

  • KotlinPropertyAccessorFlags is removed and inlined into KotlinProperyAccessorMetadata. Please use KotlinPropertyAccessorMetadata instead.
  • KotlinPropertyMetadata.getterFlags,KotlinPropertyMetadata.referencedGetterMethod,KotlinPropertyMetadata.getterSignature have been removed.
    Please use KotlinPropertyMetadata.getterMetadata instead.
  • KotlinPropertyMetadata.setterFlags,KotlinPropertyMetadata.referencedSetterMethod,KotlinPropertyMetadata.setterSignature have been removed.
    Please use KotlinPropertyMetadata.setterMetadata instead.
  • KotlinClassKindMetadata.enumEntryNames, KotlinClassKindMetadata.referencedEnumEntries have been removed and moved to EnumEntryMetadata.
    Please use KotlinClassKindMetadata.enumEntries instead.

Bugfixes

  • Fix ClassUtil.externalClassVersion returning null for preview versions.

9.2.0

Choose a tag to compare

@piazzesiNiccolo-GS piazzesiNiccolo-GS released this 07 Oct 09:22

API changes for line number handling

  • Add new StructuredLineNumberInfo class.
  • Deprecate ExtendedLineNumberInfo class.
  • Adapt utilities to generate StructuredLineNumberInfo instead of ExtendedLineNumberInfo.

Java support

  • Update maximum supported Java class version to 69.65535 (Java 25).

Bugfixes

  • Prevent error when building with maven where the dependency "kotlin-stdlib-common" could not be found.

9.1.11

Choose a tag to compare

@robinlefever robinlefever released this 21 Aug 12:04

Kotlin support

  • Add support for processing Kotlin 2.2 metadata.

9.1.10

Choose a tag to compare

@rubenpieters rubenpieters released this 24 Mar 11:06

Java support

  • Update maximum supported Java class version to 68.65535 (Java 24).

Bugfixes

  • Prevent StackOverflowError in ConstantPoolShrinker when visiting a pattern matching switch in java >= 21.

9.1.9

Choose a tag to compare

@rubenpieters rubenpieters released this 07 Mar 15:29

Improved

  • Improve performance of MethodLinker in situations with large number of linked methods in a chain.

9.1.8

Choose a tag to compare

@piazzesiNiccolo-GS piazzesiNiccolo-GS released this 17 Feb 08:39

Improved

  • Improve runtime of BamTransferRelation.
  • Add a method signature and descriptor parser in the new package proguard.classfile.attribute.signature.

Kotlin support

  • Add support for processing Kotlin 2.1 metadata.

API changes for the dataflow analysis code

This is a continuation of the API changes started in release 9.1.7.

  • Remove JvmValueBamCpaRun in order to simplify the utility code to run the analysis. ValueAnalyzer is the direct replacement, this class has the same behavior as JvmValueBamCpaRun, as long as analyze is called only once.
  • Remove JvmTaintMemoryLocationBamCpaRun in order to simplify the utility code to run the analysis. TaintAnalyzer is the direct replacement, this class has the same behavior as JvmTaintMemoryLocationBamCpaRun, as long as analyze is called only once.
  • Remove the CpaRun infrastructure.
  • Remove MapAbstractStateFactory, WrapperTransferRelation, and other classes that were only used with the tree heap model.
  • Remove StateNames and getStateByName.
  • Refactor several classes taking generic parameters for CfaEdge, CfaNode, and Signature, to not use the generic parameters anymore. They now default to JvmCfaEdge, JvmCfaNode, and MethodSignature.
  • Refactor CPA reached set, waitlist, operators, and all their dependant classes to be parametrized by the type of abstract states of the dataflow analysis. This allows to make the code safe at compile time and avoid unnecessary casts.
  • Move AbortOperator from being a parameter of CpaAlgorithm#run to the ConfigurableProgramAnalysis interface.
  • Move functionalities of LatticeAbstractState to AbstractState. Remove AbstractDomain since the abstract states can now perform directly the isLessOrEqual and join operations without the need of delegation.

Bugfixes

  • Fix semi-lattice properties of MultiTypedReferenceValue's generalize() method
  • Fix integers potentially being used as reference identifier during interprocedural value analysis. This could result in the analysis not reaching a fixed point.
  • Fix JvmTaintTransferRelation#propagateExtraTaints propagating taint incorrectly if the stack contains more than one element.