search for: q_parser

Displaying 8 results from an estimated 8 matches for "q_parser".

Did you mean: _parser
2006 Sep 24
1
[patch] buffer overflow in q_parser.y
Hi Dave, The patch below corrects a buffer overflow bug in q_parser.y. Since it is triggered by excessively long query strings, I believe that this bug could be exploited to allow arbitrary code execution if a query string supplied by a user is passed in directly to Ferret and not truncatated. If I''m right, you should consider a new release asap. I'...
2006 Aug 15
2
Windows build with Visual Studio 2005 - some success
...Field **fields = doc->df_arr, *field; text_buf[MAX_WORD_SIZE - 1] = ''\0''; 5. nmake again. Lots of variations on the theme: C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(154): error C2059: syntax error : ''constant'' This is because q_parser.c redefines "WORD", which is also defined in one of the windows include files. Changed "WORD" to "YYWORD" in q_parser.c on lines 59, 70, 440, and 1774. 6. nmake now complains about missing symbols: str_hash exists bv_scan_next bv_scan_next_from tk_set is_skip_vints is...
2006 Oct 16
2
Ferret::QueryParser::QueryParseException
...ring our last week of Ferret / aaf usage (also our first week of Ferret / aaf usage), I have received 8 messages stating that our app encountered a Ferret::QueryParser::QueryParseException. For instance: A Ferret::QueryParser::QueryParseException occurred in foo#search: Error occurred in src/q_parser.y:279 - yyerror couldn''t parse query "com -- 404". Error message was syntax error /where/gems/are/stored/gems/ferret-0.10.11/lib/ferret/index.rb:709 in ''parse'' (thanks to the excellent exception_notification plugin for what you see above) So I did a...
2006 May 11
6
problem with solaris install
I was trying to install ferret 0.9.2 on solaris (SunOS 5.8) which does not have a sys/dir.h nix_io.c:5:21: sys/dir.h: No such file or directory make: *** [nix_io.o] Error 1 I couldn''t find an obvious way around this... any suggestions? Thanks, Rich Marisa Cornell Information Technologies Cornell University
2006 Dec 08
6
QueryParser Exception Handling Problem
...asses/Ferret/QueryParser.html :handle_parser_errors => true is enabled by default and seems to be in acts_as_ferret in class_methods.rb of the plugin. However, when I pass a special character as a query (e.g., !, -, <, >, etc) it throws an error and pukes. -- snip -- Error occured in src/q_parser.y:279 - yyerror couldn''t parse query ``<script>''''. Error message was syntax error -- end snip -- Anyone know what''s going on here? -- Posted via http://www.ruby-forum.com/.
2006 Apr 26
1
Building native extensions fail on Macbook Pro
...pt/local/lib/ruby/1.8/i686-darwin8.5.2 -I. -O -pipe -I/opt/local/include -c q_multi_phrase.c gcc -fno-common -O -pipe -I/opt/local/include -fno-common -pipe -fno-common -I. -I/opt/local/lib/ruby/1.8/i686-darwin8.5.2 -I/opt/local/lib/ruby/1.8/i686-darwin8.5.2 -I. -O -pipe -I/opt/local/include -c q_parser.c gcc -fno-common -O -pipe -I/opt/local/include -fno-common -pipe -fno-common -I. -I/opt/local/lib/ruby/1.8/i686-darwin8.5.2 -I/opt/local/lib/ruby/1.8/i686-darwin8.5.2 -I. -O -pipe -I/opt/local/include -c q_phrase.c gcc -fno-common -O -pipe -I/opt/local/include -fno-common -pipe -fno-common -I...
2007 Nov 30
0
Cannot install ferret gem on Leopard
...ruby/1.8/i686-darwin8.10.3 -I. -fno-common -g -O2 -fno-common -pipe -fno-common -D_FILE_OFFSET_BITS=64 -c q_multi_term.c gcc -I. -I/usr/local/lib/ruby/1.8/i686-darwin8.10.3 -I/usr/local/lib/ruby/1.8/i686-darwin8.10.3 -I. -fno-common -g -O2 -fno-common -pipe -fno-common -D_FILE_OFFSET_BITS=64 -c q_parser.c gcc -I. -I/usr/local/lib/ruby/1.8/i686-darwin8.10.3 -I/usr/local/lib/ruby/1.8/i686-darwin8.10.3 -I. -fno-common -g -O2 -fno-common -pipe -fno-common -D_FILE_OFFSET_BITS=64 -c q_phrase.c gcc -I. -I/usr/local/lib/ruby/1.8/i686-darwin8.10.3 -I/usr/local/lib/ruby/1.8/i686-darwin8.10.3 -I. -fno-com...
2006 Aug 24
8
installing ferret
...local/lib/ruby/1.8/i686-linux -I. -c q_fuzzy.c gcc -fPIC -g -O2 -fno-common -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I. -c q_multi_term.c gcc -fPIC -g -O2 -fno-common -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I. -c q_parser.c gcc -fPIC -g -O2 -fno-common -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I. -c q_span.c gcc -fPIC -g -O2 -fno-common -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I. -c ind.c gcc -fPIC -g -O2 -fno-common -I. -I/usr/local...