We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
headius
Learn more about funding links in repositories.
Report abuse
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I use jruby 1.7.19. I failed to check CSRF at Rails4.2 by raised TypeError [can't convert nil into Integer]. https://github.com/rails/rails/blob/v4.2.1/actionpack/lib/action_controller/metal/request_forgery_protection.rb#L321
TypeError [can't convert nil into Integer]
# example.rb ths = [] s1 = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" s2 = "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY" 10_000.times do t = Thread.new do number_ary = [] begin s1.bytes.zip(s2.bytes).map { |(c1,c2)| number_ary << [c1 , c2]; c1 ^ c2 } rescue Exception print "#{$!.inspect}\n#{number_ary.inspect}\n" end end ths << t end ths.each(&:join)
result
C:\workspace\sandbox\ruby-byte>jruby example.rb #<TypeError: can't convert nil into Integer> [[88, 89], [88, nil]] #<TypeError: can't convert nil into Integer> [[88, 89], [88, 89], [88, 89], [88, 89], [88, 89], [88, 89], [88, 89], [88, 89], [88, 89], [88, 89], [88, 89], [88, 89], [88, 89], [88, 89], [88, 89], [88, 89], [88, 89], [88, 89], [88, 89], [88, 89], [88, 89], [88, nil]]
The text was updated successfully, but these errors were encountered:
Sorry, I was not looking. Maybe, this is the same isuee as #2577.
Sorry, something went wrong.
No branches or pull requests
I use jruby 1.7.19.
I failed to check CSRF at Rails4.2 by raised
TypeError [can't convert nil into Integer]
.https://github.com/rails/rails/blob/v4.2.1/actionpack/lib/action_controller/metal/request_forgery_protection.rb#L321
Simple reproduction code
result
The text was updated successfully, but these errors were encountered: