[cvs] bogofilter/src token.c,1.118,1.119
Matthias Andree
matthias.andree at gmx.de
Wed Apr 6 00:31:31 CEST 2005
David Relson <relson at users.sourceforge.net> writes:
> + uint p = (prefix == NULL) ? 0 : prefix->leng;
> + uint l = leng + p;
> +
> + if (l >= token_size)
> + l = token_size - p;
> +
> + token->leng = l;
> +
> + /* copy prefix, if there is one */
> + if (prefix != NULL)
> + memcpy(token->text, prefix->text, p);
> +
> + memcpy(token->text + p, text, l-p); /* include nul terminator */
> + token->text[token->leng] = '\0'; /* ensure nul termination */
What is the upper limit here?
IOW, against what limit does the actual prefix length count?
Do we limit against MAXTOKENLEN or something a lot larger?
--
Matthias Andree
_______________________________________________
Bogofilter-dev mailing list
Bogofilter-dev at bogofilter.org
http://www.bogofilter.org/mailman/listinfo/bogofilter-dev
More information about the bogofilter-dev
mailing list