diff options
author | David Spisla <david.spisla@iternity.com> | 2019-02-19 14:56:11 +0100 |
---|---|---|
committer | Shyamsundar Ranganathan <srangana@redhat.com> | 2019-02-25 15:25:57 +0000 |
commit | c360210685b2ebb152b45f24257cc19a12884cac (patch) | |
tree | 8db4caecf3881fbea0700190f919a016d98e07d3 /glusterfsd | |
parent | fce763a6fcd9331356e7d32c1aa8daf9e991aa56 (diff) |
md-cache: Adapt integer data types to avoid integer overflow
The "struct iatt" in iatt.h is using int64_t types for storing
the atime, mtime and ctime. Therefore the struct 'struct md_cache' in
md-cache.c should also use this types to avoid an integer overflow.
This can happen e.g. if someone uses a very high default-retention-period
in the WORM-Xlator.
Change-Id: I605268d300ab622b9c8ab30e459dc00d9340aad1
fixes: bz#1680020
Signed-off-by: David Spisla <david.spisla@iternity.com>
(cherry picked from commit 15423e14f16dd1a15ee5e5cbbdbdd370e57ed59f)
Diffstat (limited to 'glusterfsd')
0 files changed, 0 insertions, 0 deletions