evalhook 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/ext/evalhook_base/evalhook_base.c +4 -0
- metadata +4 -4
data/Rakefile
CHANGED
@@ -99,6 +99,10 @@ void process_individual_node(NODE* node, VALUE handler) {
|
|
99
99
|
ID id = node->nd_mid;
|
100
100
|
|
101
101
|
switch (nd_type(node)) {
|
102
|
+
case NODE_XSTR:
|
103
|
+
case NODE_DXSTR:{
|
104
|
+
rb_raise(rb_eSecurityError, "Forbidden node type xstr (system call execution)");
|
105
|
+
}
|
102
106
|
case NODE_COLON3: {
|
103
107
|
rb_raise(rb_eSecurityError, "Forbidden node type colon3 (reference to global namespace)");
|
104
108
|
}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evalhook
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Dario Seminara
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-12-
|
18
|
+
date: 2010-12-27 00:00:00 -03:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|