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
@@ -523,7 +523,7 @@ int sigar_file_system_list_get(sigar_t *sigar,
|
||||
#include <sys/vfs.h>
|
||||
|
||||
#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 FSDEV_ID(sb) (sb.st_ino + sb.st_dev)
|
||||
|
||||
|
||||
Reference in new issue
Block a user