cbor 0.5.10.2 → 0.5.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/cbor/unpacker.c +3 -3
- data/lib/cbor/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5c19c16a813216e3c903a39aa6f0ecda394583573c45838b7544ec2514541280
|
|
4
|
+
data.tar.gz: d68cb04551414615326546e33603f86a6353e336b61ee3415ddfc173cb6bb798
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 17f03486f27be553722e1f5f737701b74be8bfbf824ee96da8bb42cb52aa182b9c9c717f5e63fcf705a7ffcd793207489755b3309ea8be727d4afb0752a42433
|
|
7
|
+
data.tar.gz: 50da5b227f4a4247386f6ef72a958d50343e517ad25c2780d945a99c520506b80a51f19a98967600490a493fc88ef1fc41c778c4b350bb17b24a28ea45b1da22
|
data/ext/cbor/unpacker.c
CHANGED
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
#include <math.h> /* for ldexp */
|
|
31
31
|
|
|
32
32
|
/* work around https://bugs.ruby-lang.org/issues/15779 for now
|
|
33
|
-
* by limiting preallocation to about a
|
|
34
|
-
* limit is 2**n-1 (n==
|
|
33
|
+
* by limiting preallocation to about a half a Mebibyte
|
|
34
|
+
* limit is 2**n-1 (n==16) items so we can avoid a conditional
|
|
35
35
|
*/
|
|
36
|
-
#define SANE_PREALLOCATION_MAX
|
|
36
|
+
#define SANE_PREALLOCATION_MAX 0xFFFFUL
|
|
37
37
|
#define SANE_PREALLOCATE(n) (n & SANE_PREALLOCATION_MAX)
|
|
38
38
|
|
|
39
39
|
#if !defined(DISABLE_RMEM) && !defined(DISABLE_UNPACKER_STACK_RMEM) && \
|
data/lib/cbor/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cbor
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.10.
|
|
4
|
+
version: 0.5.10.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Carsten Bormann, standing on the tall shoulders of Sadayuki Furuhashi
|
|
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
173
173
|
- !ruby/object:Gem::Version
|
|
174
174
|
version: '0'
|
|
175
175
|
requirements: []
|
|
176
|
-
rubygems_version: 4.0.
|
|
176
|
+
rubygems_version: 4.0.8
|
|
177
177
|
specification_version: 4
|
|
178
178
|
summary: CBOR, Concise Binary Object Representation.
|
|
179
179
|
test_files:
|