rmagick 7.1.2 → 7.1.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: a64e970fa95ffd136462c610a760685197a4ed3ceb2c9e6dad90be7a0c8f3211
4
- data.tar.gz: dc300b78b89fdb54386fbc10e14b55f6dd37497e65923ec48728abe3b3c85b1d
3
+ metadata.gz: 0d81d58d1022ce126e777f8fa23d3cd3ee634c3f1c9fd6518de50b3d6126b239
4
+ data.tar.gz: 1cee4ad10699e4a2b4119c1e4ef86d3b206da05e1af830b450d43f8dcc7e1d62
5
5
  SHA512:
6
- metadata.gz: f9ae77c69984d7472435ccfceda7c74637a4b2374e6529d40d47dae464629058a778c76208f7ca9c1644ecc2e50a44ca507abcd265fb57cff22c83fc7f031cf5
7
- data.tar.gz: 3d620912beddcea78dc6953c461281f35bf5ea1c9d68c3cfe0c8a25c60cefc79f36c4834c559d59f448e1d749956755148425bd421a8f20e17859fd24f867e8f
6
+ metadata.gz: 517f893ecbf2d2c34257ae10af315b7b5f9cf24104f3422c951334bb63a17ee23941198fa9e8d4404f6bd3deb75a4efbe9d707be6ada44108217c584ba793815
7
+ data.tar.gz: 45f92c15dc8f1790de2a71949fb0c32fb496a7806266ff7ea9e0890e4da51e4dce4896b7ae09d0a4ec11a925b393f41fea34527cf21d45c54ad3917786ce2d6b
data/CHANGELOG.md CHANGED
@@ -3,6 +3,13 @@
3
3
  All notable changes to this project are documented in this file.
4
4
  This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
+ ## RMagick 7.1.3
7
+
8
+ Bug Fixes
9
+
10
+ * Fix Magick.set_cache_threshold truncating the threshold on 32-bit platforms (#1865)
11
+ * Fix Magick.limit_resource truncating 64-bit limits on 32-bit platforms (#1864)
12
+
6
13
  ## RMagick 7.1.2
7
14
 
8
15
  Bug Fixes
@@ -10,6 +17,7 @@ Bug Fixes
10
17
  * Fix memory leak in Draw#annotate when the geometry copy fails (#1854)
11
18
  * Fix affine matrix not being restored when Draw#annotate raises (#1853)
12
19
  * Fix use-after-free in Draw#annotate when a callback destroys the image (#1852)
20
+ * Fix Steep self type crash in RVG helper (#1851)
13
21
  * Fix memory leak in Draw#annotate when a geometry argument raises (#1850)
14
22
 
15
23
  ## RMagick 7.1.1
@@ -217,7 +217,7 @@ Magick_limit_resource(int argc, VALUE *argv, VALUE klass)
217
217
  ResourceType res = UndefinedResource;
218
218
  char *str;
219
219
  ID id;
220
- unsigned long cur_limit;
220
+ MagickSizeType cur_limit;
221
221
 
222
222
  rb_scan_args(argc, argv, "11", &resource, &limit);
223
223
 
@@ -301,12 +301,12 @@ Magick_limit_resource(int argc, VALUE *argv, VALUE klass)
301
301
 
302
302
  if (argc > 1)
303
303
  {
304
- SetMagickResourceLimit(res, (MagickSizeType)NUM2ULONG(limit));
304
+ SetMagickResourceLimit(res, (MagickSizeType)NUM2ULL(limit));
305
305
  }
306
306
 
307
307
  RB_GC_GUARD(limit);
308
308
 
309
- return ULONG2NUM(cur_limit);
309
+ return ULL2NUM(cur_limit);
310
310
  }
311
311
 
312
312
 
@@ -320,9 +320,9 @@ Magick_limit_resource(int argc, VALUE *argv, VALUE klass)
320
320
  VALUE
321
321
  Magick_set_cache_threshold(VALUE klass, VALUE threshold)
322
322
  {
323
- unsigned long thrshld = NUM2ULONG(threshold);
324
- SetMagickResourceLimit(MemoryResource, (MagickSizeType)thrshld);
325
- SetMagickResourceLimit(MapResource, (MagickSizeType)(2*thrshld));
323
+ MagickSizeType thrshld = (MagickSizeType)NUM2ULL(threshold);
324
+ SetMagickResourceLimit(MemoryResource, thrshld);
325
+ SetMagickResourceLimit(MapResource, 2*thrshld);
326
326
  return klass;
327
327
  }
328
328
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Magick
4
- VERSION = '7.1.2'
4
+ VERSION = '7.1.3'
5
5
  MIN_RUBY_VERSION = '3.2.0'
6
6
  MIN_IM6_VERSION = '6.9.0'
7
7
  MIN_IM7_VERSION = '7.1.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rmagick
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.2
4
+ version: 7.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Hunter