Improved: Improve ObjectInputStream class

(OFBIZ-10837)

Fixes CVE-2019-0189

There was a recurring typo in previous commit.
For arrays of primitives it should be 
"[Z","[B","[S","[I","[J","[F","[D","[C"
and not 
"[Z ","[B ","[S ","[I ","[J ","[F ","[D ","[C "
Just spotted that while reviewing again (did not have the time to test)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856459 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2019-03-28 08:18:19 +00:00
parent 87a1138fb2
commit 0cc1913a34
@@ -145,7 +145,7 @@ public final class UtilObject {
java.util.Arrays.asList("byte\\[\\]", "Number", "Long", "foo", "SerializationInjector",
"java.util.HashMap", "Boolean", "Number", "Integer", "FlexibleStringExpander",
"sun.util.calendar.ZoneInfo", "java.sql.Timestamp", "java.util.Date",
"java.math.BigDecimal", "[Z ","[B ","[S ","[I ","[J ","[F ","[D ","[C ",
"java.math.BigDecimal", "[Z","[B","[S","[I","[J","[F","[D","[C",
"org.apache.ofbiz.widget.renderer.VisualTheme"));) {
return wois.readObject();
}