From 2da7f545a34747ae21d73ce1369a6d2055f94ea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Tomko?= Date: Mon, 27 Mar 2017 14:33:16 +0200 Subject: [PATCH] storage: reject negative capacity https://bugzilla.redhat.com/show_bug.cgi?id=1436119 --- src/conf/storage_conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf/storage_conf.c b/src/conf/storage_conf.c index 6b34cea032..28277e5efe 100644 --- a/src/conf/storage_conf.c +++ b/src/conf/storage_conf.c @@ -1063,7 +1063,7 @@ virStorageSize(const char *unit, const char *val, unsigned long long *ret) { - if (virStrToLong_ull(val, NULL, 10, ret) < 0) { + if (virStrToLong_ullp(val, NULL, 10, ret) < 0) { virReportError(VIR_ERR_XML_ERROR, "%s", _("malformed capacity element")); return -1; -- GitLab