cast to prevent possible integer overflow in filesystem_usage
This commit is contained in:
1 parent
d1f6bb4ae5
commit
8355e44d8c
6 files changed
+6
-6
No files matched your search
@@ -1574,7 +1574,7 @@ int sigar_file_system_list_get(sigar_t *sigar,
|
||||
/* XXX this is exactly the same as linux and hpux, solaris is darn close */
|
||||
|
||||
#define SIGAR_FS_BLOCKS_TO_BYTES(buf, f) \
|
||||
((buf.f * (buf.f_bsize / 512)) >> 1)
|
||||
(((sigar_uint64_t)buf.f * (buf.f_bsize / 512)) >> 1)
|
||||
|
||||
#define LSPV_CMD "/usr/sbin/lspv"
|
||||
|
||||
|
||||
Reference in new issue
Block a user