Skip to content

Commit f3456f5

Browse files
committed
Merge branch '2.9' into 2.10
2 parents 705fadb + 63d48ff commit f3456f5

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

release-notes/VERSION-2.x

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@ Project: jackson-databind
1414
#2060: `UnwrappingBeanPropertyWriter` incorrectly assumes the found serializer is
1515
of type `UnwrappingBeanSerializer`
1616
(reported by Petar T)
17+
#2079: NPE when visiting StaticListSerializerBase
18+
(reported by WorldSEnder@github)
1719
#2082: `FactoryBasedEnumDeserializer` should be cachable
1820
#2096: `TreeTraversingParser` does not take base64 variant into account
1921
(reported by tangiel@github)
22+
#2097: Block more classes from polymorphic deserialization (CVE-2018-14718
23+
- CVE-2018-14721)
2024
#2109: Canonical string for reference type is built incorrectly
2125
(reported by svarzee@github)
2226

@@ -585,9 +589,10 @@ Project: jackson-databind
585589
#1225: `JsonMappingException` should override getProcessor()
586590
(reported by Nick B)
587591

588-
2.6.8 (if ever released)
592+
2.6.7.1 (11-Jul-2017)
589593

590594
#1383: Problem with `@JsonCreator` with 1-arg factory-method, implicit param names
595+
#1599: Backport the extra safety checks for polymorphic deserialization
591596

592597
2.6.7 (05-Jun-2016)
593598

src/main/java/com/fasterxml/jackson/databind/jsontype/impl/SubTypeValidator.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ public class SubTypeValidator
6868
s.add("oracle.jdbc.connector.OracleManagedConnectionFactory");
6969
s.add("oracle.jdbc.rowset.OracleJDBCRowSet");
7070

71+
// [databind#2097]: some 3rd party, one JDK-bundled
72+
s.add("org.slf4j.ext.EventData");
73+
s.add("flex.messaging.util.concurrent.AsynchBeansWorkManagerExecutor");
74+
s.add("com.sun.deploy.security.ruleset.DRSHelper");
75+
s.add("org.apache.axis2.jaxws.spi.handler.HandlerResolverImpl");
76+
7177
DEFAULT_NO_DESER_CLASS_NAMES = Collections.unmodifiableSet(s);
7278
}
7379

src/main/java/com/fasterxml/jackson/databind/ser/std/StaticListSerializerBase.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,10 @@ public JsonNode getSchema(SerializerProvider provider, Type typeHint) {
110110

111111
@Override
112112
public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) throws JsonMappingException {
113-
acceptContentVisitor(visitor.expectArrayFormat(typeHint));
113+
JsonArrayFormatVisitor v2 = visitor.expectArrayFormat(typeHint);
114+
if (v2 != null) {
115+
acceptContentVisitor(v2);
116+
}
114117
}
115118

116119
/*

0 commit comments

Comments
 (0)