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
@@ -1241,7 +1241,7 @@ int sigar_file_system_list_get(sigar_t *sigar,
|
||||
#include <sys/statvfs.h>
|
||||
|
||||
#define SIGAR_FS_BLOCKS_TO_BYTES(buf, f) \
|
||||
((buf.f * (buf.f_frsize / 512)) >> 1)
|
||||
(((sigar_uint64_t)buf.f * (buf.f_frsize / 512)) >> 1)
|
||||
|
||||
typedef struct {
|
||||
char device[PATH_MAX];
|
||||
|
||||
Reference in new issue
Block a user