[master] 2f10ef7 Another insufficiently wide memset spotted by LLVM.
Poul-Henning Kamp
phk at varnish-cache.org
Mon Aug 1 13:32:33 CEST 2011
commit 2f10ef7d8a1b44a56d816fcae6ba5b7c339ea273
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Aug 1 11:20:48 2011 +0000
Another insufficiently wide memset spotted by LLVM.
diff --git a/bin/varnishd/storage_persistent_subr.c b/bin/varnishd/storage_persistent_subr.c
index ea8d6e2..552c0be 100644
--- a/bin/varnishd/storage_persistent_subr.c
+++ b/bin/varnishd/storage_persistent_subr.c
@@ -67,7 +67,7 @@ smp_def_sign(const struct smp_sc *sc, struct smp_signctx *ctx,
AZ(off & 7); /* Alignment */
assert(strlen(id) < sizeof ctx->ss->ident);
- memset(ctx, 0, sizeof ctx);
+ memset(ctx, 0, sizeof *ctx);
ctx->ss = (void*)(sc->base + off);
ctx->unique = sc->unique;
ctx->id = id;
More information about the varnish-commit
mailing list