Displaying 2 results from an estimated 2 matches for "max_word_size".
2006 Sep 24
1
[patch] buffer overflow in q_parser.y
...ort), but there are other solutions as well.
Index: c/include/search.h
===================================================================
--- c/include/search.h (revision 615)
+++ c/include/search.h (working copy)
@@ -819,6 +819,7 @@
char *qstr;
char *qstrp;
char buf[QP_CONC_WORDS][MAX_WORD_SIZE];
+ char *dynbuf;
int buf_index;
HashTable *field_cache;
HashSet *fields;
Index: c/src/q_parser.y
===================================================================
--- c/src/q_parser.y (revision 615)
+++ c/src/q_parser.y (working copy)
@@ -173,6 +173,11 @@
char *bufp = buf...
2006 Aug 15
2
Windows build with Visual Studio 2005 - some success
...ifest $(DLLIB).manifest
4. ran nmake in ext dir:
index_rw.c(192) : error C2275: ''DocField'' : illegal use of this type
as an expression
VC also does not like statements before declarations. Changed index.rw
(lines 190-192) to:
DocField **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...