If an invalid JDWP command set number or command number is sent to the debug agent, it can result in branching to an unknown location, usually resulting in a crash. See first comment for details.
Tested with CI tier1, tier2 svc, and tier5 svc. --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - fix whitespace - Fix handling of invalid command sets and commands Changes: https://git.openjdk.org/jdk/pull/30827/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30827&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8382537 Stats: 232 lines in 3 files changed: 229 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/30827.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/30827/head:pull/30827 PR: https://git.openjdk.org/jdk/pull/30827
