Skip to content

Prevent transformers from running on empty bytes#106

Closed
Su5eD wants to merge 1 commit into
McModLauncher:mainfrom
Su5eD:fix/empty-transform
Closed

Prevent transformers from running on empty bytes#106
Su5eD wants to merge 1 commit into
McModLauncher:mainfrom
Su5eD:fix/empty-transform

Conversation

@Su5eD
Copy link
Copy Markdown
Member

@Su5eD Su5eD commented Mar 29, 2022

As proposed earlier in SecureJarHandler#28:

Proposal for changes:
1. Prevent transforms from running on an empty byte array (this is also happening)

This PR adds a check to TransformingClassLoader#maybeTransformClassBytes to prevent transformers from running on an empty byte array. Instead, the input bytes are returned immediately.

@LexManos LexManos closed this Mar 29, 2022
@Su5eD Su5eD deleted the fix/empty-transform branch March 29, 2022 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants