--- parser3/src/include/pa_string.h 2001/03/10 11:03:48 1.27 +++ parser3/src/include/pa_string.h 2001/03/12 09:08:48 1.32 @@ -1,5 +1,9 @@ /* - $Id: pa_string.h,v 1.27 2001/03/10 11:03:48 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,10 +52,13 @@ 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]{...} - APPENDED, // leave langage build into string being appended + PASS_APPENDED, + // leave language built into string being appended + // just a flag, that value not stored AS_IS, SQL, JS,