An Attach API request of zero size will cause RequestReader::read_request_data to read a byte before its buffer.
Better to not call read_request_data if we know there is zero to read. --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - Merge remote-tracking branch 'upstream/master' into 8391063_AttachAPI_zerosizereq - 8391063: Attach API (v2) should check for zero-sized request Changes: https://git.openjdk.org/jdk/pull/32738/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=32738&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8391063 Stats: 7 lines in 1 file changed: 4 ins; 1 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/32738.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/32738/head:pull/32738 PR: https://git.openjdk.org/jdk/pull/32738
