NetBSD-Bugs archive

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

PR/58886 CVS commit: src/usr.sbin/mtree



The following reply was made to PR bin/58886; it has been noted by GNATS.

From: "Christos Zoulas" <christos%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/58886 CVS commit: src/usr.sbin/mtree
Date: Thu, 18 Dec 2025 09:05:41 -0500

 Module Name:	src
 Committed By:	christos
 Date:		Thu Dec 18 14:05:41 UTC 2025
 
 Modified Files:
 	src/usr.sbin/mtree: spec.c
 
 Log Message:
 PR/58886: Jose Louis Duran: Fix freed memory access leading to SEGV,
 given the following spec file (mt -f <specfile>):
 ------
 /set type=dir
   .
     dup
     ..
     dup
       child_entry type=file
 ------
 This happens because when calling:
 	  addchild(last, centry);
 if it is the same entry, centry will be freed and then
 	  last = centry;
 will point to freed memory. Make addchild return the entry that is supposed
 to be used instead.
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.93 -r1.94 src/usr.sbin/mtree/spec.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 


Home | Main Index | Thread Index | Old Index