[PATCH v2 2/4] xfsprogs: fix integer overflow in xlog_find_verify_cycle
Vivek Trivedi
t.vivek at samsung.com
Fri Dec 11 05:09:01 CST 2015
Fix unintentional integer overflow in xlog_find_verify_cycle.
Reported by coverity.
Signed-off-by: Vivek Trivedi <t.vivek at samsung.com>
---
libxlog/xfs_log_recover.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libxlog/xfs_log_recover.c b/libxlog/xfs_log_recover.c
index ef7cf68..6116ecd 100644
--- a/libxlog/xfs_log_recover.c
+++ b/libxlog/xfs_log_recover.c
@@ -244,7 +244,7 @@ xlog_find_verify_cycle(
xfs_daddr_t i, j;
uint cycle;
xfs_buf_t *bp;
- xfs_daddr_t bufblks;
+ int bufblks;
char *buf = NULL;
int error = 0;
--
1.7.9.5
More information about the xfs
mailing list