Skip to content
Snippets Groups Projects
Commit 4f767358 authored by Roman Kiryanov's avatar Roman Kiryanov Committed by Automerger Merge Worker
Browse files

Merge "Allow the host to send empty clipboards to the guest" am: d20bc58a...

Merge "Allow the host to send empty clipboards to the guest" am: d20bc58a am: 7bdece28 am: c8909496

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2415825



Change-Id: I472dbd6a93e137a3c8c20d13860ea26b0b1faff4
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 62ddf52e c8909496
No related branches found
No related tags found
No related merge requests found
......@@ -111,7 +111,7 @@ class EmulatorClipboardMonitor implements Consumer<ClipData> {
bb.order(ByteOrder.LITTLE_ENDIAN);
final int msgLen = bb.getInt();
if (msgLen <= 0 || msgLen > MAX_CLIPBOARD_BYTES) {
if (msgLen < 0 || msgLen > MAX_CLIPBOARD_BYTES) {
throw new ProtocolException("Clipboard message length: " + msgLen + " out of bounds.");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment