diff --git a/0003-sync-Add-nullptr-Json-Value-constructor.patch b/0003-sync-Add-nullptr-Json-Value-constructor.patch new file mode 100644 index 0000000000000000000000000000000000000000..8ee15d8b234d3795079ca92f98f114cf434c8763 --- /dev/null +++ b/0003-sync-Add-nullptr-Json-Value-constructor.patch @@ -0,0 +1,25 @@ +From 8009add0cae666b14677376269b2b2f810ede318 Mon Sep 17 00:00:00 2001 +From: zhangzhangxin +Date: Fri, 28 Apr 2023 15:49:46 +0800 +Subject: [PATCH] sync:Add nullptr Json::Value constructor + +Signed-off-by: zhangzhangxin +--- + include/json/value.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/include/json/value.h b/include/json/value.h +index dffc51a..df1eba6 100644 +--- a/include/json/value.h ++++ b/include/json/value.h +@@ -342,6 +342,7 @@ public: + Value(const StaticString& value); + Value(const String& value); + Value(bool value); ++ Value(std::nullptr_t ptr) = delete; + Value(const Value& other); + Value(Value&& other); + ~Value(); +-- +2.40.0.windows.1 + diff --git a/jsoncpp.spec b/jsoncpp.spec index b9279e8bfa64f25d1cc205104cd268a35b91e9dc..1ee8f525ba1bd0e5ed3f5f5ae6272b157761034b 100644 --- a/jsoncpp.spec +++ b/jsoncpp.spec @@ -1,6 +1,6 @@ Name: jsoncpp Version: 1.9.3 -Release: 4 +Release: 5 Summary: JSON C++ library License: Public Domain or MIT URL: https://github.com/open-source-parsers/jsoncpp @@ -8,6 +8,7 @@ Source0: https://github.com/open-source-parsers/jsoncpp/archive/%{version BuildRequires: gcc-c++ cmake >= 3.1 python3-devel Patch0: 0001-sync-Issue-1182-Fix-fuzzing-bug.patch Patch1: 0002-sync-avoid-isprint-because-it-is-locale-specific.patch +Patch2: 0003-sync-Add-nullptr-Json-Value-constructor.patch %description JsonCpp is a C++ library that allows manipulating JSON values, @@ -89,6 +90,9 @@ hardlink -cfv %{buildroot}%{_docdir}/%{name} %changelog +* Fri Apr 28 2023 zhangxin - 1.9.3-5 +- Add nullptr Json::Value constructor + * Fri Apr 28 2023 zhangxin - 1.9.3-4 - avoid isprint, because it is locale specific