Skip to content

Conversation

jmjaffe37
Copy link

@jmjaffe37 jmjaffe37 commented Sep 3, 2025

Comparisons between types of different widths in a loop condition can cause the loop to behave unexpectedly. Here, there could potentially be an infinite loop (if cp_len > 65535)

Link to update in tip: https://github.com/openjdk/jdk/blob/431f46724658b703e995e518cb7a2149c50d6a9d/src/hotspot/share/jfr/instrumentation/jfrEventClassTransformer.cpp#L288C2-L299C27

@karianna
Copy link
Member

karianna commented Sep 4, 2025

@jmjaffe37 was this backported to jdk21u upstream? I assume this Is this fixing a customer issue?

@jmjaffe37 jmjaffe37 marked this pull request as draft September 4, 2025 17:27
@jmjaffe37
Copy link
Author

@karianna, I am opening a few PRs that address some ongoing CodeQL/s360 issues. I asked the JVM engineers about the process to potentially upstream these changes, and it seems that the first step is to open PRs for internal review (I am pretty sure that this PR will never be merged here in our fork). That said, I found out recently that backports need to flow backward from tip, so it might be a while before it gets to jdk21

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