Repository navigation
Releases
Releases · Guardsquare/proguard-core
9.4.1
Version 9.4.1
Improved
- Greatly improved performance for generalization of deeply nested CompositeIntegerValues.
- Improved performance for
InitializedClassUtil.isInstanceOf.
API improvements
- Add
JvmStaticFieldTaintSourceto specify taint sources for static field reads. TaintSourceis now an interface, so it can be implemented by taint sources other than methods.JvmTaintSourcehas been renamed toJvmMethodTaintSource.- The fields of
JvmMethodTaintSourceare now private. Use thegetSignature,getTaintsThis,getTaintsReturn,getTaintArgs, andgetTaintGlobalsmethods instead. - Add
JrtDataEntryandJrtDataEntrySource.
Bugfixes
- Fix concurrent dex conversion through one
Dex2Proinstance corrupting the class pool.
9.4.0
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
KotlinAliasReferenceFixerto update Kotlin type alias references (aliasName) after their declaration container is renamed. Run it afterClassReferenceFixer. MemberRemoverwill 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.addStaticInitializerInstructionsreturns the created or modified static initializer.ClassUtilsupports optionally quoting identifiers with spaces when converting names, types or descriptions from internal to external.- Avoid changing invokespecial to invokeinterface in
MethodInvocationFixerwhen a default super interface method is present. - Add new
InterfaceMethodReferenceFixerthat patchesMethodRefConstants toInterfaceMethodRefConstants in visited classes when the reference is an interface method. - Add
resetmethod toMemberRemover. - Add processing flags helper methods to
Processable. - Add
isLeaderandisFallThroughmethods to theBranchTargetFinder. 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
CallGraphWalkerusing a default depth and width.
Improved
- Improve performance of generalization steps in partial evaluation.
- Improve
CallGraphto 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
NullPointerExceptioninClassReferenceFixerfor Kotlin coroutine suspend lambdas by resolving theirreferencedMethodtoinvokeSuspend. - Fix reference initialization for Kotlin enum entries annotations.
9.3.2
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
Kotlin support
- Add support for processing Kotlin 2.3 metadata.
9.3.0
API changes
- Deprecate
DominatorCalculator.dominatesmethod, introduceDominatorCalculator.maybeDominatesreturning anOptional<Boolean>instead ofboolean. - Support Kotlin experimental annotation metadata v2.
The following changes will require code updates:
KotlinPropertyAccessorFlagsis removed and inlined intoKotlinProperyAccessorMetadata. Please useKotlinPropertyAccessorMetadatainstead.KotlinPropertyMetadata.getterFlags,KotlinPropertyMetadata.referencedGetterMethod,KotlinPropertyMetadata.getterSignaturehave been removed.
Please useKotlinPropertyMetadata.getterMetadatainstead.KotlinPropertyMetadata.setterFlags,KotlinPropertyMetadata.referencedSetterMethod,KotlinPropertyMetadata.setterSignaturehave been removed.
Please useKotlinPropertyMetadata.setterMetadatainstead.KotlinClassKindMetadata.enumEntryNames,KotlinClassKindMetadata.referencedEnumEntrieshave been removed and moved toEnumEntryMetadata.
Please useKotlinClassKindMetadata.enumEntriesinstead.
Bugfixes
- Fix
ClassUtil.externalClassVersionreturning null for preview versions.
9.2.0
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
Kotlin support
- Add support for processing Kotlin 2.2 metadata.
9.1.10
Java support
- Update maximum supported Java class version to 68.65535 (Java 24).
Bugfixes
- Prevent
StackOverflowErrorin ConstantPoolShrinker when visiting a pattern matching switch in java >= 21.
9.1.9
Improved
- Improve performance of
MethodLinkerin situations with large number of linked methods in a chain.
9.1.8
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
JvmValueBamCpaRunin order to simplify the utility code to run the analysis.ValueAnalyzeris the direct replacement, this class has the same behavior asJvmValueBamCpaRun, as long asanalyzeis called only once. - Remove
JvmTaintMemoryLocationBamCpaRunin order to simplify the utility code to run the analysis.TaintAnalyzeris the direct replacement, this class has the same behavior asJvmTaintMemoryLocationBamCpaRun, as long asanalyzeis called only once. - Remove the
CpaRuninfrastructure. - Remove
MapAbstractStateFactory,WrapperTransferRelation, and other classes that were only used with the tree heap model. - Remove
StateNamesandgetStateByName. - Refactor several classes taking generic parameters for
CfaEdge,CfaNode, andSignature, to not use the generic parameters anymore. They now default toJvmCfaEdge,JvmCfaNode, andMethodSignature. - 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
AbortOperatorfrom being a parameter ofCpaAlgorithm#runto theConfigurableProgramAnalysisinterface. - Move functionalities of
LatticeAbstractStatetoAbstractState. RemoveAbstractDomainsince the abstract states can now perform directly theisLessOrEqualandjoinoperations without the need of delegation.
Bugfixes
- Fix semi-lattice properties of
MultiTypedReferenceValue'sgeneralize()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#propagateExtraTaintspropagating taint incorrectly if the stack contains more than one element.