diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 05:54:39 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 05:54:39 +0000 |
commit | 267c6f2ac71f92999e969232431ba04678e7437e (patch) | |
tree | 358c9467650e1d0a1d7227a21dac2e3d08b622b2 /external/java_websocket/patches/0001-cid-1545515-Dm-Dubious-method-used.patch | |
parent | Initial commit. (diff) | |
download | libreoffice-267c6f2ac71f92999e969232431ba04678e7437e.tar.xz libreoffice-267c6f2ac71f92999e969232431ba04678e7437e.zip |
Adding upstream version 4:24.2.0.upstream/4%24.2.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | external/java_websocket/patches/0001-cid-1545515-Dm-Dubious-method-used.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/external/java_websocket/patches/0001-cid-1545515-Dm-Dubious-method-used.patch b/external/java_websocket/patches/0001-cid-1545515-Dm-Dubious-method-used.patch new file mode 100644 index 0000000000..e56780600a --- /dev/null +++ b/external/java_websocket/patches/0001-cid-1545515-Dm-Dubious-method-used.patch @@ -0,0 +1,42 @@ +From 695941c8da3e6cefa0553996773a8cf8673bb00e Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolan.mcnamara@collabora.com> +Date: Sun, 1 Oct 2023 19:50:02 +0100 +Subject: [PATCH] cid#1545515 Dm: Dubious method used + +--- + src/main/java/org/java_websocket/WebSocketImpl.java | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/src/main/java/org/java_websocket/WebSocketImpl.java b/src/main/java/org/java_websocket/WebSocketImpl.java +index 85fd413..926f330 100644 +--- a/src/main/java/org/java_websocket/WebSocketImpl.java ++++ b/src/main/java/org/java_websocket/WebSocketImpl.java +@@ -30,6 +30,7 @@ + import java.nio.ByteBuffer; + import java.nio.channels.ByteChannel; + import java.nio.channels.SelectionKey; ++import java.nio.charset.StandardCharsets; + import java.util.ArrayList; + import java.util.Collection; + import java.util.Collections; +@@ -227,7 +228,7 @@ + if (log.isLoggable(Level.FINE)) { + log.fine("process({}): ({})" + " : " + socketBuffer.remaining() + " : " + + (socketBuffer.remaining() > 1000 ? "too big to display" +- : new String(socketBuffer.array(), socketBuffer.position(), socketBuffer.remaining()))); ++ : new String(socketBuffer.array(), socketBuffer.position(), socketBuffer.remaining(), StandardCharsets.US_ASCII))); + } + if (readyState != ReadyState.NOT_YET_CONNECTED) { + if (readyState == ReadyState.OPEN) { +@@ -740,7 +741,7 @@ + + private void write(ByteBuffer buf) { + log.fine("write({}): {}" + " : " + buf.remaining() + " : " + +- (buf.remaining() > 1000 ? "too big to display" : new String(buf.array()))); ++ (buf.remaining() > 1000 ? "too big to display" : new String(buf.array(), StandardCharsets.US_ASCII))); + + outQueue.add(buf); + wsl.onWriteDemand(this); +-- +2.41.0 + |