Hello community,
here is the log from the commit of package perl-Cpanel-JSON-XS for
openSUSE:Factory checked in at 2020-10-29 14:52:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Cpanel-JSON-XS (Old)
and /work/SRC/openSUSE:Factory/.perl-Cpanel-JSON-XS.new.3463 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Cpanel-JSON-XS"
Thu Oct 29 14:52:03 2020 rev:30 rq:844798 version:4.25
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Cpanel-JSON-XS/perl-Cpanel-JSON-XS.changes
2020-10-10 00:28:04.417115016 +0200
+++
/work/SRC/openSUSE:Factory/.perl-Cpanel-JSON-XS.new.3463/perl-Cpanel-JSON-XS.changes
2020-10-29 14:52:06.465231737 +0100
@@ -1,0 +2,11 @@
+Thu Oct 29 03:07:04 UTC 2020 - Tina Müller <[email protected]>
+
+- updated to 4.25
+ see /usr/share/doc/packages/perl-Cpanel-JSON-XS/Changes
+
+ 4.25 2020-10-28 (rurban)
+ - Fix decode relaxed with comment at the end of the buffer (GH #174
fgaspar), a regression
+ introduced with 3.0220, to fix n_number_then_00.
+ - Possible fix for a gcc-9 optimizer bug (GH #172)
+
+-------------------------------------------------------------------
Old:
----
Cpanel-JSON-XS-4.24.tar.gz
New:
----
Cpanel-JSON-XS-4.25.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Cpanel-JSON-XS.spec ++++++
--- /var/tmp/diff_new_pack.w8kXbU/_old 2020-10-29 14:52:07.313232576 +0100
+++ /var/tmp/diff_new_pack.w8kXbU/_new 2020-10-29 14:52:07.317232581 +0100
@@ -17,7 +17,7 @@
Name: perl-Cpanel-JSON-XS
-Version: 4.24
+Version: 4.25
Release: 0
%define cpan_name Cpanel-JSON-XS
Summary: CPanel fork of JSON::XS, fast and correct serializing
++++++ Cpanel-JSON-XS-4.24.tar.gz -> Cpanel-JSON-XS-4.25.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Cpanel-JSON-XS-4.24/Changes
new/Cpanel-JSON-XS-4.25/Changes
--- old/Cpanel-JSON-XS-4.24/Changes 2020-10-02 11:04:11.000000000 +0200
+++ new/Cpanel-JSON-XS-4.25/Changes 2020-10-28 08:02:03.000000000 +0100
@@ -2,6 +2,11 @@
TODO: http://stevehanov.ca/blog/index.php?id=104 compression
+4.25 2020-10-28 (rurban)
+ - Fix decode relaxed with comment at the end of the buffer (GH #174
fgaspar), a regression
+ introduced with 3.0220, to fix n_number_then_00.
+ - Possible fix for a gcc-9 optimizer bug (GH #172)
+
4.24 2020-10-02 (rurban)
- Fix decode_json(scalar, 0) (GH #171 plicease), check 2nd arg for
true-ness
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Cpanel-JSON-XS-4.24/META.json
new/Cpanel-JSON-XS-4.25/META.json
--- old/Cpanel-JSON-XS-4.24/META.json 2020-10-02 11:04:51.000000000 +0200
+++ new/Cpanel-JSON-XS-4.25/META.json 2020-10-28 08:03:26.000000000 +0100
@@ -100,7 +100,7 @@
"url" : "https://github.com/rurban/Cpanel-JSON-XS"
}
},
- "version" : "4.24",
+ "version" : "4.25",
"x_contributors" : [
"Ashley Willis <[email protected]>",
"Chip Salzenberg <[email protected]>",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Cpanel-JSON-XS-4.24/META.yml
new/Cpanel-JSON-XS-4.25/META.yml
--- old/Cpanel-JSON-XS-4.24/META.yml 2020-10-02 11:04:51.000000000 +0200
+++ new/Cpanel-JSON-XS-4.25/META.yml 2020-10-28 08:03:26.000000000 +0100
@@ -48,7 +48,7 @@
bugtracker: https://github.com/rurban/Cpanel-JSON-XS/issues
license: http://dev.perl.org/licenses/
repository: https://github.com/rurban/Cpanel-JSON-XS
-version: '4.24'
+version: '4.25'
x_contributors:
- 'Ashley Willis <[email protected]>'
- 'Chip Salzenberg <[email protected]>'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Cpanel-JSON-XS-4.24/SIGNATURE
new/Cpanel-JSON-XS-4.25/SIGNATURE
--- old/Cpanel-JSON-XS-4.24/SIGNATURE 2020-10-02 11:04:53.000000000 +0200
+++ new/Cpanel-JSON-XS-4.25/SIGNATURE 2020-10-28 08:03:30.000000000 +0100
@@ -19,14 +19,14 @@
SHA256 a3c34aba52e269e6cec558ecf9cff393138574189fdff26b183bee9cc2e0434f
.travis.yml
SHA256 c3f2a1a4f66382f796f71a571946722edba53cf3238152b26fd325f4c2f1a20f
.whitesource
SHA256 8de3540a3cd7ecc9a9dcb48975fe852c082fe17d4462f87bb72aa7cc47f083ad COPYING
-SHA256 0615a751bdb3a0875b26604e942b4f2a24209fb6820059d38921ba60c7da2fb8 Changes
+SHA256 a96c00c1b1025a7db2470df72d9e4a9e70670660d1c547e7081bac8a9aa9a80c Changes
SHA256 9a862bfa951e3d5b43c2dcb95767dbf15ed2ee3af872442d3815795757533f29
MANIFEST
-SHA256 05005192b34694b6ad27af08de1c69ca9489071f27592a133d4e4f2180fbe570
META.json
-SHA256 50797299bf9d8a81f5657cb44e30872cc8e0aa8bd737b770a8355a12c94197db
META.yml
+SHA256 79dc815ed71f58c2dbb44ed12971c6ce08a3cdc02e41f328f37e30d58e6593c1
META.json
+SHA256 a1b14ffcfeef4962eaf424a7e5f0e4c056de34b27d8823a7994734b8fd550263
META.yml
SHA256 f8861d5bea7bea9bac7300674a110b607c82db7bb1e7ae789ceb6a6ab706b5bc
Makefile.PL
SHA256 8f148ef8274dedead04152016f433003da991dbdfb1b12dac84674b4845e2d8e README
-SHA256 4bc803bdb3163e46777aaee57e58be23ff86d4b1eac256b693cbd6bc6a89c6b1 XS.pm
-SHA256 3f9d85c820e913ec997eeefc94b78fa6d337e030c7b0246381a1484eec04465d XS.xs
+SHA256 3b82fb71bef5868907eb2dc3120bc50870f5dbafd8f2972f025dffee9979525e XS.pm
+SHA256 5c78325c816a93bcac43f989bcbd2ba168b0ce1509b37ce635b28a7361aef11c XS.xs
SHA256 c95e4b970183cbd6d1ec9c88c37a80f12bd2b66ed6be3c008ffd578d2f622c01
XS/Boolean.pm
SHA256 20596259e7e399ed1984a469a9a907be878499406d5285a11f1ab98f93aff44f
XS/Type.pm
SHA256 2f34a530b7ce981b0df9aacd2b6944ccf74c4a7f8bb49fde57b342663e7feb26
bin/cpanel_json_xs
@@ -68,7 +68,7 @@
SHA256 99275341c61a98875e26651c858941a299bf6a6fb99a2d60e04d22395b69e3fb
t/14_latin1.t
SHA256 7fb98299aabdc98c4e83404d8fb663d357f815d8dc524406c79b1fd1827531e4
t/15_prefix.t
SHA256 4f73fcceb31cfb06ac5110ec89107cc14302905061d28b0700d4673f654d5592
t/16_tied.t
-SHA256 a5afaae43c7a21c80f17020b7bfd2d164777499bb940f2482f9167d9a0cf9b54
t/17_relaxed.t
+SHA256 398e5ff51603a52de901f4c1934265601e226d05b88ac604dcd9e9d179a0344f
t/17_relaxed.t
SHA256 1585a6aecec5c73b7a6f70982b3bcc1edc1d63ca55467223ab0d6f0956254bc4
t/18_json_checker.t
SHA256 9f9006c1f925d9ace7d1621e1479c21f9b50459ab57aa0046209fed2b3e66530
t/19_incr.t
SHA256 dde73ed3cfc0e28d064f61fc08871accf88b780aee06a3cb0040f59f04c1ff36
t/20_faihu.t
@@ -445,12 +445,12 @@
SHA256 aca6f846869ab2e4881e807739086e1535b1438bd0e23d7a021360742736a6a9
xt/pod.t
-----BEGIN PGP SIGNATURE-----
-iQEzBAEBAwAdFiEEKJWogdNCcPq/6PdHtPYzOeZdZBQFAl927TQACgkQtPYzOeZd
-ZBTiewf8Dxo5JeRRuB8AAR6yVIEk7Y9YvRHzGbRMrBD0JhFSnABxwLLBgo0ZJLYC
-ktrA3gMqSTzmsah01H/j2ZnzZD/oAQar77JQFBF5Fci51Hhy7MLalKF5XpSphqFQ
-mkggKlK/bOYjFOlwvc1hzjly/3fU3u8VpKRzjmO6kp7huQB9O8RmG3VJ2BwCQoVT
-YHf4UJ7V+MyipumwtuM/4RTdOpiPqDba0bf+dNw4ZBj17mdkB3YyZnEcF1seEcIl
-MsCL2ksjbe8B/6ybdVP4spCtvlYozubt8lszPMNIa/v3sZ/kTwVRJQqg0nvQ6rCL
-/CkM+JU9fsAaZIakSeBSBNJAvN+GTw==
-=nU3V
+iQEzBAEBAwAdFiEEKJWogdNCcPq/6PdHtPYzOeZdZBQFAl+ZF8EACgkQtPYzOeZd
+ZBR4Ogf+ILFxjqgcSJ5G5i7ciI0WVS3BUe0uXwY2XRn8tNQW6Hgvmzw3/NL1tRF5
+qu6IKYsuJkz3cMZasiC1u2nC4k3FP/QuAFLNTVS3gg2pqTNJjbzrhdkFxGAmSO+X
+s2g8Ycl0ApmgOvdGema+Ix0/ojeL6k9QOhPkDYtiZcYYGUrgabNYe7gk7OSGW1MZ
+Jth6mclVXPJ5IIwDP/Wvz5tl2cl++scens9A9qshbP8YmkuPZCrkrxGm5xid6AFP
+UgvGtk5WS5KikzoYb3yK+YCgEV5dQqMSyuBcnzkwfBVSeGLBxhyolaYbCNon/yov
+YbqoPNT66GGMdB7KnJdIZ9Re4bPwdQ==
+=cahG
-----END PGP SIGNATURE-----
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Cpanel-JSON-XS-4.24/XS.pm
new/Cpanel-JSON-XS-4.25/XS.pm
--- old/Cpanel-JSON-XS-4.24/XS.pm 2020-10-02 11:04:11.000000000 +0200
+++ new/Cpanel-JSON-XS-4.25/XS.pm 2020-10-28 08:01:09.000000000 +0100
@@ -1,5 +1,5 @@
package Cpanel::JSON::XS;
-our $VERSION = '4.24';
+our $VERSION = '4.25';
our $XS_VERSION = $VERSION;
# $VERSION = eval $VERSION;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Cpanel-JSON-XS-4.24/XS.xs
new/Cpanel-JSON-XS-4.25/XS.xs
--- old/Cpanel-JSON-XS-4.24/XS.xs 2020-10-02 11:04:11.000000000 +0200
+++ new/Cpanel-JSON-XS-4.25/XS.xs 2020-10-28 08:01:09.000000000 +0100
@@ -57,6 +57,14 @@
#define UTF32BOM "\377\376\000\000" /* FF FE 00 00 or +UFEFF */
#define UTF32BOM_BE "\000\000\376\377" /* 00 00 FE FF */
+/* Need to disable broken gcc-9.[0-3] -O1. Assume gcc-10 is also still broken
*/
+/* Only gcc defines __GNUC_PATCHLEVEL__, clang and icc do define __GNUC__ */
+#if defined(__GNUC__) && defined(__GNUC_PATCHLEVEL__) && \
+ (((__GNUC__ == 9) && (__GNUC_MINOR__ <= 3) || \
+ (__GNUC__ > 9)))
+# define BROKEN_GCC_OPT
+#endif
+
/* mingw with USE_LONG_DOUBLE (and implied USE_MINGW_ANSI_STDIO) do use the
non-msvcrt inf/nan stringification in sprintf(). */
#if defined(WIN32) && !defined(__USE_MINGW_ANSI_STDIO) &&
!defined(USE_LONG_DOUBLE)
@@ -2685,8 +2693,7 @@
decode_comment (dec_t *dec)
{
/* only '#'-style comments allowed a.t.m. */
-
- while (*dec->cur && *dec->cur != 0x0a && *dec->cur != 0x0d)
+ while (*dec->cur && *dec->cur != 0x0a && *dec->cur != 0x0d && dec->cur <
dec->end)
++dec->cur;
}
@@ -2712,7 +2719,8 @@
else if (ch != 0x20 && ch != 0x0a && ch != 0x0d && ch != 0x09)
break; /* parse error, but let higher level handle it, gives better
error messages */
- ++dec->cur;
+ if (dec->cur < dec->end)
+ ++dec->cur;
}
}
@@ -4401,6 +4409,12 @@
/*///////////////////////////////////////////////////////////////////////////
*/
/* incremental parser */
+/* Note that our good friend gcc-9.x crashes here, which looks like one of the
+ well-known internal gcc tree-optimizer bugs. */
+#ifdef BROKEN_GCC_OPT
+// or __attribute__((optimize("no-tree-vectorize")))
+__attribute__((optimize("O0")))
+#endif
static void
incr_parse (JSON *self)
{
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Cpanel-JSON-XS-4.24/t/17_relaxed.t
new/Cpanel-JSON-XS-4.25/t/17_relaxed.t
--- old/Cpanel-JSON-XS-4.24/t/17_relaxed.t 2020-08-05 18:59:40.000000000
+0200
+++ new/Cpanel-JSON-XS-4.25/t/17_relaxed.t 2020-10-28 08:01:09.000000000
+0100
@@ -1,4 +1,4 @@
-use Test::More $] < 5.008 ? (skip_all => "5.6") : (tests => 12);
+use Test::More $] < 5.008 ? (skip_all => "5.6") : (tests => 13);
use Cpanel::JSON::XS;
my $json = Cpanel::JSON::XS->new->relaxed;
@@ -19,3 +19,5 @@
is (encode_json ($json->decode ("[\"Hello\tWorld\"]")), '["Hello\tWorld"]');
is (encode_json ($json->decode ('{"a b":2}')), '{"a b":2}'); # allow_barekey
+
+is (encode_json ($json->decode ('["ha"] #ouch')), '["ha"]'); # allow comments