Commit 13fe897f authored by Walid Boudebouda's avatar Walid Boudebouda Committed by Dridi Boukelmoune

varnishncsa: Reduce CTX.gen overflow likelihood

If a format never matches anything, the 4294967296th transaction
proccessed by varnishncsa will wrap its generation around to zero,
be considered a match, and let vsb_fcat() pass a null string to
VSB_quote().
parent 23229ebd
......@@ -93,7 +93,7 @@ enum e_frag {
};
struct fragment {
unsigned gen;
uint64_t gen;
const char *b, *e;
};
......@@ -144,7 +144,7 @@ static struct ctx {
FILE *fo;
struct vsb *vsb;
unsigned gen;
uint64_t gen;
VTAILQ_HEAD(,format) format;
int quote_how;
char *missing_string;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment