We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a8f6ed commit 1fa01c6Copy full SHA for 1fa01c6
src/main/java/org/keepassxc/LinuxMacConnection.java
@@ -85,6 +85,9 @@ protected JSONObject getCleartextResponse() {
85
}
86
log.trace("Reading message: {}", raw);
87
try {
88
+ var s = raw.toString();
89
+ // Test, if we received more than one message with the last read
90
+ if (s.length() - s.replace("}", "").length() > 1) throw new JSONException("");
91
return new JSONObject(raw.toString());
92
} catch (JSONException e) {
93
log.error("Message corrupted. Received: {}", raw);
0 commit comments