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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fafbded4dd72295218759d12eea5b09b280ec06719eca7d646164173a2405fe2
4
- data.tar.gz: abcc97eaa52ad9abd549b3bf18819ff2982f09d1ab283df06ff46d7f10a4c470
3
+ metadata.gz: 5c19c16a813216e3c903a39aa6f0ecda394583573c45838b7544ec2514541280
4
+ data.tar.gz: d68cb04551414615326546e33603f86a6353e336b61ee3415ddfc173cb6bb798
5
5
  SHA512:
6
- metadata.gz: 82e84122c5a22dc4a6644823d92a33de60a55f58ef0844637aad0e72a6fdf899afa1f016aafc1306e12ec323c55c035ef5a9148252c68f162fd75d222f61262f
7
- data.tar.gz: a68bc717c4886e2dc5dd969941f2f33d620bcdbe8d9609ab06356ecc7d2de7e26699c21f8b56eb51d3b942204772e84413778aa7fb7fdcfb9a933c7a1923362a
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 Tebibyte
34
- * limit is 2**n-1 (n==28) so we can avoid a conditional
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 0xFFFFFFFUL
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
@@ -1,3 +1,3 @@
1
1
  module CBOR
2
- VERSION = "0.5.10.2"
2
+ VERSION = "0.5.10.3"
3
3
  end
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.2
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.2
176
+ rubygems_version: 4.0.8
177
177
  specification_version: 4
178
178
  summary: CBOR, Concise Binary Object Representation.
179
179
  test_files: