diff options
author | Carlos Maiolino <cmaiolino@redhat.com> | 2022-08-16 10:45:50 +0200 |
---|---|---|
committer | Carlos Maiolino <cem@kernel.org> | 2022-08-25 10:38:45 +0200 |
commit | 2875b05cb643afc7bef3cc7522b250045eb24bab (patch) | |
tree | 992aa24e5aaea7ff19d0025e905e2596f3f3fb00 | |
parent | 16cb2e65dd316351795ebdccb585ef96527c6f39 (diff) | |
download | xfsdump-dev-2875b05cb643afc7bef3cc7522b250045eb24bab.tar.gz |
xfsdump: Initialize getbmap structure in quantity2offset
Prevent uninitialized data in the stack by initializing getbmap structure
to zero.
Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
-rw-r--r-- | dump/inomap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dump/inomap.c b/dump/inomap.c index f3200be4..c4ea21dc 100644 --- a/dump/inomap.c +++ b/dump/inomap.c @@ -1627,7 +1627,7 @@ static off64_t quantity2offset(jdm_fshandle_t *fshandlep, struct xfs_bstat *statp, off64_t qty) { int fd; - struct getbmap bmap[BMAP_LEN]; + struct getbmap bmap[BMAP_LEN] = {0}; off64_t offset; off64_t offset_next; off64_t qty_accum; |