segfaulter 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ require 'mkmf'
2
+ create_makefile('segfaulter/segfaulter')
@@ -0,0 +1,14 @@
1
+ #include <ruby/ruby.h>
2
+
3
+ static VALUE t_segfault(VALUE self){
4
+ VALUE arr[1];
5
+ arr[1999000000000] = NULL;
6
+ int* p1;
7
+ *p1 = 3;
8
+ return Qnil;
9
+ }
10
+ void Init_segfaulter(void)
11
+ {
12
+ VALUE klass = rb_define_class("Segfaulter", rb_cObject);
13
+ rb_define_method(klass , "segfault", t_segfault, 0);
14
+ }
data/lib/segfaulter.rb ADDED
@@ -0,0 +1,4 @@
1
+ require 'segfaulter/segfaulter'
2
+
3
+ class Segfaulter
4
+ end
metadata ADDED
@@ -0,0 +1,50 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: segfaulter
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Surya Gaddipati
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-09-26 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: Quick and painless to cause segfault in ruby Ruby
15
+ email:
16
+ - surya.gaddipati@gmail.com
17
+ executables: []
18
+ extensions:
19
+ - ext/segfaulter/extconf.rb
20
+ extra_rdoc_files: []
21
+ files:
22
+ - lib/segfaulter.rb
23
+ - ext/segfaulter/segfaulter.c
24
+ - ext/segfaulter/extconf.rb
25
+ homepage: https://github.com/sgaddipati/segfaulter
26
+ licenses: []
27
+ post_install_message:
28
+ rdoc_options: []
29
+ require_paths:
30
+ - lib
31
+ - ext
32
+ required_ruby_version: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ required_rubygems_version: !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ requirements: []
45
+ rubyforge_project: segfaulter
46
+ rubygems_version: 1.8.24
47
+ signing_key:
48
+ specification_version: 3
49
+ summary: Quick and painless to cause segfault in ruby Ruby
50
+ test_files: []