This is an automated email from the ASF dual-hosted git repository. jlmonteiro pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/johnzon.git
from aad59d60 fix: CVE-2022-45868 new 046faf57 fix(JOHNZON-397): protection against very slow BigDecimal to BigInteger conversion at large scale new 1f15b27f fix(JOHNZON-397): Create configuration option to set the BigDecimal scale limit new 05569d38 feat(JOHNZON-397): allow to configure the scale limit for backward compatibility new db7ecfce feat(JOHNZON-397): make sure to pass the provider instance so we can configure the scale per provider new 6e29ba98 fix(JOHNZON-397): sets the maxBigDecimalScale if it's our JsonProvider impl new 7b0359f5 fix: checkstyle new c0ec8c4b Merge pull request #105 from jeanouii/JOHNZON-397_toBigIntegerProtection The 978 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../johnzon/core/CommentsJsonStreamParserImpl.java | 12 ++-- .../apache/johnzon/core/JohnzonJsonParserImpl.java | 15 +++-- .../apache/johnzon/core/JsonArrayBuilderImpl.java | 25 ++++---- .../johnzon/core/JsonBuilderFactoryImpl.java | 16 ++--- .../apache/johnzon/core/JsonInMemoryParser.java | 8 ++- .../apache/johnzon/core/JsonMergePatchDiff.java | 9 ++- .../apache/johnzon/core/JsonMergePatchImpl.java | 9 ++- .../org/apache/johnzon/core/JsonNumberImpl.java | 8 ++- .../apache/johnzon/core/JsonObjectBuilderImpl.java | 19 +++--- .../apache/johnzon/core/JsonParserFactoryImpl.java | 20 ++++--- .../org/apache/johnzon/core/JsonProviderImpl.java | 42 +++++++++---- .../apache/johnzon/core/JsonReaderFactoryImpl.java | 14 +++-- .../org/apache/johnzon/core/JsonReaderImpl.java | 26 ++++---- .../apache/johnzon/core/JsonStreamParserImpl.java | 15 ++--- .../org/apache/johnzon/core/JsonNumberTest.java | 56 ++++++++++++++++-- .../johnzon/core/JsonParserStreamingTest.java | 3 +- .../org/apache/johnzon/core/JsonParserTest.java | 6 +- .../johnzon/core/JsonStreamParserImplTest.java | 8 +-- .../org/apache/johnzon/core/SerializationTest.java | 3 +- .../org/apache/johnzon/jsonb/JohnzonBuilder.java | 15 +++-- .../org/apache/johnzon/mapper/MapperBuilder.java | 13 +++- .../org/apache/johnzon/mapper/MapperConfig.java | 11 +++- .../johnzon/mapper/util/JsonProviderUtil.java | 69 ++++++++++++++++++++++ .../apache/johnzon/mapper/MapperConfigTest.java | 2 +- .../test/java/org/superbiz/ExtendMappingTest.java | 2 +- 25 files changed, 311 insertions(+), 115 deletions(-) create mode 100644 johnzon-mapper/src/main/java/org/apache/johnzon/mapper/util/JsonProviderUtil.java