Re: [cvs] bogofilter/src token.c,1.118,1.119
Matthias Andree <[email protected]>
| Newsgroups | gmane.mail.bogofilter.devel |
|---|---|
| Message-ID | <[email protected]> |
David Relson <[email protected]> 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 [email protected] http://www.bogofilter.org/mailman/listinfo/bogofilter-dev