[nacked] fix-possible-memory-leak-in-unxz.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The quilt patch titled
     Subject: lib/decompress_unxz.c: fix: possible memory leak in unxz()
has been removed from the -mm tree.  Its filename was
     fix-possible-memory-leak-in-unxz.patch

This patch was dropped because it was nacked

------------------------------------------------------
From: Vishnu Sanal T <t.v.s10123@xxxxxxxxx>
Subject: lib/decompress_unxz.c: fix: possible memory leak in unxz()
Date: Sun, 6 Oct 2024 12:55:43 +0530

Fix possible memory leak in the function unxz() in lib/decompress_unxz.c
forgets to free the pointer 'in', when the statement if (fill == NULL &&
flush == NULL) is true.

Link: https://lkml.kernel.org/r/20241006072542.66442-2-t.v.s10123@xxxxxxxxx
Signed-off-by: Vishnu Sanal T <t.v.s10123@xxxxxxxxx>
Cc: Lasse Collin <lasse.collin@xxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 lib/decompress_unxz.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- a/lib/decompress_unxz.c~fix-possible-memory-leak-in-unxz
+++ a/lib/decompress_unxz.c
@@ -343,13 +343,13 @@ STATIC int INIT unxz(unsigned char *in,
 			}
 		} while (ret == XZ_OK);
 
-		if (must_free_in)
-			free(in);
-
 		if (flush != NULL)
 			free(b.out);
 	}
 
+	if (must_free_in)
+		free(in);
+
 	if (in_used != NULL)
 		*in_used += b.in_pos;
 
_

Patches currently in -mm which might be from t.v.s10123@xxxxxxxxx are






[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux