提交 cff257f5 编写于 作者: J Jim Meyering

storage_conf.c: avoid overflow upon use of "z" or "Z" (zebi) suffix

* src/storage_conf.c (virStorageSize): Don't try to compute 1024^7,
since it's too large for a 64-bit type.
上级 2e6bad31
......@@ -919,12 +919,6 @@ virStorageSize(virConnectPtr conn,
1024ull;
break;
case 'z':
case 'Z':
mult = 1024ull * 1024ull * 1024ull * 1024ull * 1024ull *
1024ull * 1024ull;
break;
default:
virStorageReportError(conn, VIR_ERR_XML_ERROR,
_("unknown size units '%s'"), unit);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册