Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BCEL-363 Enforce MAX_CP_ENTRIES in ConstantPoolGen and ConstantPool.dump #147

Merged

Conversation

rjatkins
Copy link
Contributor

Reapplies the fix in openjdk/jdk11u@13bf52c but using the Const constant for the constant pool size limit.

Copy link
Member

@garydgregory garydgregory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @rjatkins
Thank you for your PR.
You'll need to add tests to this PR, otherwise, this will be a regression waiting to happen.

src/main/java/org/apache/bcel/generic/ConstantPoolGen.java Outdated Show resolved Hide resolved
src/main/java/org/apache/bcel/classfile/ConstantPool.java Outdated Show resolved Hide resolved
@garydgregory
Copy link
Member

@rjatkins
Copy link
Contributor Author

I've added the requested test coverage. Let me know if you need further changes

@garydgregory garydgregory merged commit f3267cb into apache:master Sep 21, 2022
@garydgregory
Copy link
Member

@rjatkins merged, ty for your PR!

asfgit pushed a commit that referenced this pull request Sep 21, 2022
@rjatkins
Copy link
Contributor Author

@garydgregory is there any chance of a release with this fix in it soon? I'd like to use it to patch xalan, and I'd rather not have to release a patched version of BCEL to do it.

@garydgregory
Copy link
Member

@rjatkins
Sure, I'll look into it later this week or this weekend.

kriegaex added a commit to eclipse-aspectj/aspectj that referenced this pull request Nov 13, 2022
kriegaex added a commit to eclipse-aspectj/aspectj that referenced this pull request Nov 13, 2022
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