--- parser3/src/include/pa_string.h 2001/03/10 12:12:50 1.28 +++ parser3/src/include/pa_string.h 2001/03/12 09:08:48 1.32 @@ -1,5 +1,9 @@ /* - $Id: pa_string.h,v 1.28 2001/03/10 12:12:50 paf Exp $ + Parser + Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexander Petrosyan (http://design.ru/paf) + + $Id: pa_string.h,v 1.32 2001/03/12 09:08:48 paf Exp $ */ /* @@ -27,8 +31,10 @@ #include "pa_pool.h" #include "pa_types.h" +#define UNTAINT_TIMES_BIGGER 10 + #ifndef NO_STRING_ORIGIN -# define STRING_APPEND_PARAMS const char *src, size_t size, bool tainted, char *file, uint line +# define STRING_APPEND_PARAMS const char *src, size_t size, bool tainted, const char *file, uint line # define APPEND(src, size, file, line) real_append(src, size, false, file, line) # define APPEND_TAINTED(src, size, file, line) real_append(src, size, true, file, line) #else @@ -46,6 +52,7 @@ public: }; enum Untaint_lang { + UNKNOWN=0, // when get by name fails NO, // clean YES, // tainted, untaint language as assigned later // untaint languages. assigned by ^untaint[lang]{...}