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 CHANGED
@@ -6,7 +6,7 @@ require 'rake/gempackagetask'
6
6
 
7
7
  spec = Gem::Specification.new do |s|
8
8
  s.name = 'evalhook'
9
- s.version = '0.1.1'
9
+ s.version = '0.1.2'
10
10
  s.author = 'Dario Seminara'
11
11
  s.email = 'robertodarioseminara@gmail.com'
12
12
  s.platform = Gem::Platform::RUBY
@@ -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: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.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-19 00:00:00 -03:00
18
+ date: 2010-12-27 00:00:00 -03:00
19
19
  default_executable:
20
20
  dependencies: []
21
21