[4.0] ed6fda4 Don't allow relative sizes for stevedore file size
Lasse Karstensen
lkarsten at varnish-software.com
Thu Jan 15 16:35:41 CET 2015
commit ed6fda4e96b6204b3a0de6c922c2e05a3484fd41
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date: Mon Oct 6 15:36:19 2014 +0200
Don't allow relative sizes for stevedore file size
diff --git a/bin/varnishd/storage/stevedore_utils.c b/bin/varnishd/storage/stevedore_utils.c
index 1cd890c..9ce647f 100644
--- a/bin/varnishd/storage/stevedore_utils.c
+++ b/bin/varnishd/storage/stevedore_utils.c
@@ -201,7 +201,7 @@ STV_FileSize(int fd, const char *size, unsigned *granularity, const char *ctx)
ctx);
} else {
AN(size);
- q = VNUM_2bytes(size, &l, fssize);
+ q = VNUM_2bytes(size, &l, 0);
if (q != NULL)
ARGV_ERR("(%s) size \"%s\": %s\n", ctx, size, q);
More information about the varnish-commit
mailing list