Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/usr.sbin/mtree
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