Resolves: RHEL-32996 Following is the patch list: xfsprogs-6.5.0-xfs_db.xfs.8-xfs_db-fix-leak-in-flist_find_ftyp.patch xfsprogs-6.5.0-xfs_repair.xfs.8-xfs_repair-make-duration-take-time_t.patch xfsprogs-6.5.0-xfs_repair.xfs.8-xfs_scrub-don-t-call-phase_end-if-phase_rusage-was-n.patch xfsprogs-6.5.0-xfs_fsr.xfs.8-xfs_fsr-convert-fsrallfs-to-use-time_t-instead-of-in.patch xfsprogs-6.5.0-xfs_fsr.xfs.8-xfs_fsr-replace-atoi-with-strtol.patch xfsprogs-6.5.0-xfs_db.xfs.8-xfs_db-add-helper-for-flist_find_type-for-clearer-fi.patch xfsprogs-6.5.0-xfs_repair.xfs.8-xfs_repair-catch-strtol-errors.patch xfsprogs-rhelonly-xfs_db-fix-unitialized-variable-in-check_parents-function.patch Signed-off-by: Bill O'Donnell <bodonnel@redhat.com>
26 lines
600 B
Diff
26 lines
600 B
Diff
jdm_parentpaths() doesn't initialize count. If count happens to be
|
|
non-zero, following loop can result in access overflow.
|
|
|
|
Signed-off-by: Andrey Albershteyn <aalbersh@redhat.com>
|
|
---
|
|
io/parent.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/io/parent.c b/io/parent.c
|
|
index 8f63607ffec2..5750d98a3b75 100644
|
|
--- a/io/parent.c
|
|
+++ b/io/parent.c
|
|
@@ -112,7 +112,7 @@ check_parents(parent_t *parentbuf, size_t *parentbuf_size,
|
|
jdm_fshandle_t *fshandlep, struct xfs_bstat *statp)
|
|
{
|
|
int error, i;
|
|
- __u32 count;
|
|
+ __u32 count = 0;
|
|
parent_t *entryp;
|
|
|
|
do {
|
|
--
|
|
2.42.0
|
|
|
|
|