QueryParser fails badly allocating enormous amount of memory when
processing query strings with special/accented characters. See:
irb(main):002:0> require ‘rubygems’
irb(main):003:0> require ‘ferret’
irb(main):004:0> include Ferret
irb(main):005:0> index = Index::Index.new
irb(main):008:0> index << “something”
Now the error while processing “bolô”
irb(main):009:0> query = index.process_query(“bo\303\264”)
/opt/csw/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:749:in
parse': failed to allocate memory (NoMemoryError) from /opt/csw/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:749:in
do_process_query’
from
/opt/csw/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:676:in
process_query' from /opt/csw/lib/ruby/1.8/monitor.rb:229:in
synchronize’
from
/opt/csw/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:674:in
process_query' from (irb):9:in
irb_binding’
from /opt/csw/lib/ruby/1.8/irb/workspace.rb:52:in `irb_binding’
from /opt/csw/lib/ruby/1.8/irb/workspace.rb:52