r4198 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Tue Aug 18 14:03:07 CEST 2009
Author: phk
Date: 2009-08-18 14:03:06 +0200 (Tue, 18 Aug 2009)
New Revision: 4198
Modified:
trunk/varnish-cache/bin/varnishd/storage_persistent.c
Log:
Make sure new seg is inside silo.
Modified: trunk/varnish-cache/bin/varnishd/storage_persistent.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/storage_persistent.c 2009-08-18 11:46:06 UTC (rev 4197)
+++ trunk/varnish-cache/bin/varnishd/storage_persistent.c 2009-08-18 12:03:06 UTC (rev 4198)
@@ -892,6 +892,7 @@
} else {
sg->offset = sg2->offset + sg2->length;
assert(sg->offset < sc->mediasize);
+ assert(sg->offset + sg2->length < sc->mediasize);
}
sg->length = sc->aim_segl;
sg->length &= ~7;
More information about the varnish-commit
mailing list