Another class filtering fix

This commit is contained in:
fourbites
2026-03-20 15:41:04 +01:00
parent 35b8acb52a
commit 1fd6240d09
@@ -258,7 +258,8 @@ public class ObjectInputStream extends DataInputStream
checkName = checkName.substring(1, checkName.length() - 1); checkName = checkName.substring(1, checkName.length() - 1);
} }
boolean allowed = false; // primitive array descriptors (I, Z, B, S, C, J, F, D) are always safe
boolean allowed = (checkName.length() == 1);
for (String prefix : _allowedPrefixes) { for (String prefix : _allowedPrefixes) {
if (checkName.startsWith(prefix)) { if (checkName.startsWith(prefix)) {
allowed = true; allowed = true;