prometheus-client-mmap 0.11.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f2da1f2b3aafb4f99845a0d57a23b7ddd913cec6cd943ca18657c7743e309053
4
- data.tar.gz: 9a757f3213a28d9b21ef0999c1c1f7756ee827dc5303c22d5dd700626010a177
3
+ metadata.gz: 3fec107115b6e90ebfbc109f0603bb44ca7d7165e637a2e6448ce463ab54c3c7
4
+ data.tar.gz: 9e9e0382069f57aebe0fb35508a1b82a8e1c61b4b228be573807241b2a434fb8
5
5
  SHA512:
6
- metadata.gz: 4d1b4457931f0c557debce08e9478bbdc3b933b15aa59df56eac89d65be7091b116b2ebef5fd853b96daa76a61d404b4b9ebf86920b8fccdd4b9a0d92051f66f
7
- data.tar.gz: e64a0985943a3bd8460358ab905d9ac387e0b5b829b30ac652707915078d194fae84ab83a700ed6f702d5bae2576f669d983febc5d9479817cc1300926426d98
6
+ metadata.gz: 6747ece05958e5b65a92e7305e8edb167e7ffafa84d5f0b24ccc56e8c8977add781f7c88eab1ecca117ae88bb0bbd7150273307f0c5314f33249246cef317dbf
7
+ data.tar.gz: 7454daa53c15a7cf57e359ebec87dda164609ad43620ebf8a72e287cac4113caba08de8ca3ba2d1efdcf1c0a05f2bdbfb7c2b524d8eb27e63444844f06469ed5
@@ -42,7 +42,6 @@ static VALUE mm_str(VALUE obj, int modify) {
42
42
  GET_MMAP(obj, i_mm, modify & ~MM_ORIGIN);
43
43
  if (modify & MM_MODIFY) {
44
44
  if (i_mm->t->flag & MM_FROZEN) rb_error_frozen("mmap");
45
- if (!OBJ_TAINTED(ret) && rb_safe_level() >= 4) rb_raise(rb_eSecurityError, "Insecure: can't modify mmap");
46
45
  }
47
46
  ret = rb_obj_alloc(rb_cString);
48
47
  if (rb_obj_tainted(obj)) {
@@ -216,13 +215,6 @@ VALUE mm_init(VALUE obj, VALUE fname) {
216
215
  SafeStringValue(fname);
217
216
  path = StringValuePtr(fname);
218
217
 
219
- {
220
- if (rb_safe_level() > 0 && OBJ_TAINTED(fname)) {
221
- rb_raise(rb_eSecurityError, "Insecure operation");
222
- }
223
- rb_secure(1);
224
- }
225
-
226
218
  vscope = MAP_SHARED;
227
219
  size = 0;
228
220
  perm = 0666;
@@ -1,5 +1,5 @@
1
1
  module Prometheus
2
2
  module Client
3
- VERSION = '0.11.0'.freeze
3
+ VERSION = '0.12.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prometheus-client-mmap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Schmidt
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-07-22 00:00:00.000000000 Z
12
+ date: 2020-09-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fuzzbert