prometheus-client-mmap 0.11.0 → 0.12.0
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/fast_mmaped_file/mmap.c +0 -8
- data/lib/prometheus/client/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: 3fec107115b6e90ebfbc109f0603bb44ca7d7165e637a2e6448ce463ab54c3c7
|
4
|
+
data.tar.gz: 9e9e0382069f57aebe0fb35508a1b82a8e1c61b4b228be573807241b2a434fb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6747ece05958e5b65a92e7305e8edb167e7ffafa84d5f0b24ccc56e8c8977add781f7c88eab1ecca117ae88bb0bbd7150273307f0c5314f33249246cef317dbf
|
7
|
+
data.tar.gz: 7454daa53c15a7cf57e359ebec87dda164609ad43620ebf8a72e287cac4113caba08de8ca3ba2d1efdcf1c0a05f2bdbfb7c2b524d8eb27e63444844f06469ed5
|
data/ext/fast_mmaped_file/mmap.c
CHANGED
@@ -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;
|
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.
|
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-
|
12
|
+
date: 2020-09-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fuzzbert
|