Skip to content
New issue

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

Error parsing block local variables #612

Closed
forced-request opened this issue Jan 27, 2015 · 1 comment · Fixed by #613
Closed

Error parsing block local variables #612

forced-request opened this issue Jan 27, 2015 · 1 comment · Fixed by #613

Comments

@forced-request
Copy link

Brakeman is throwing the following error in situations when leveraging block local variables.

Processing models...   
/Users/Poulin/.rvm/gems/ruby-2.0.0-p451/gems/brakeman-3.0.1/lib/brakeman/processors/alias_processor.rb:194:in `block (2 levels) in process_call_with_block': Unexpected value in block args: s(:shadow, :obj_attribute_one, :obj_attribute_two) (RuntimeError)

The PoC Code causing the error:

users.each do |user; obj_attribute_one, obj_attribute_two|
    # Stuff
end

Better examples can be seen here: http://rubylearning.com/satishtalim/ruby_blocks.html

@presidentbeef
Copy link
Owner

Hi John,

Thanks for reporting this! #613 should fix this issue.

Repository owner locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants