X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/84a655513611641b55a8f46c13ee0e3cb141477f..b273058b341903372bdebe67d2960e4f8d2d8689:/src/src/string.c diff --git a/src/src/string.c b/src/src/string.c index fbdc0246d..9f1aeb81d 100644 --- a/src/src/string.c +++ b/src/src/string.c @@ -1256,9 +1256,23 @@ g->s = s; /* Build or append to a growing-string, sprintf-style. +Arguments: + g a growable-string + func called-from function name, for debug + line called-from file line number, for debug + limit maximum string size + flags see below + format printf-like format string + ap variable-args pointer + +Flags: + SVFMT_EXTEND buffer can be created or exteded as needed + SVFMT_REBUFFER buffer can be recopied to tainted mem as needed + SVFMT_TAINT_NOCHK do not check inputs for taint + If the "extend" flag is true, the string passed in can be NULL, empty, or non-empty. Growing is subject to an overall limit given -by the size_limit argument. +by the limit argument. If the "extend" flag is false, the string passed in may not be NULL, will not be grown, and is usable in the original place after return.