Skip to content

Instantly share code, notes, and snippets.

@flajann2
Created December 19, 2016 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flajann2/9ad496a7965cc07a97352c10b2978da5 to your computer and use it in GitHub Desktop.
Save flajann2/9ad496a7965cc07a97352c10b2978da5 to your computer and use it in GitHub Desktop.
parser ruby24.rb loops forever upon loading
'573,572,,,557,566,554,553,552,562,555,557,,554,553,552,562,555,557,565',
'554,553,552,562,555,557,565,554,553,552,562,555,,565,,,,,,,565,560,',
',,,,,560,,,,573,572,,560,,566,,573,572,,560,,566,,573,572,,,,566,,573',
'572,,,,566' ]
racc_action_table = arr = ::Array.new(25362, nil)
idx = 0
clist.each do |str|
str.split(',', -1).each do |i|
arr[idx] = i.to_i unless i.empty? # line 883 loops forever
idx += 1 # line 884 loops forever
end
end
clist = [
'95,444,444,601,601,17,347,95,95,95,58,340,95,95,95,24,95,26,19,385,655',
'661,24,341,95,386,95,95,95,61,357,657,223,1,357,348,95,95,727,95,95',
'95,95,95,883,906,937,938,941,351,58,587,17,673,983,655,661,330,310,19',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment