Date: Sat, 17 Feb 2001 17:06:13 -0800 (PST) From: Bruce Evans <bde@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/gnu/usr.bin/tar diffarch.c Message-ID: <200102180106.f1I16DT69116@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
bde 2001/02/17 17:06:13 PST Modified files: gnu/usr.bin/tar diffarch.c Log: Quick fix for attempts to free non-malloc()ed memory. The variables current_file_name and current_link_name sometimes point into the middle of malloc()ed memory and sometimes point to alloca()ed memory, but free() is sometimes called on them. This seems to be harmless for the usual tar operations, but it is usually fatal for `tar -W'. E.g., for `cd /etc; tar Wcf /tmp/foo rc', at the start of verify_volume(), current_file_name points to alloca()ed memory, and tar attempts to free it. Revision Changes Path 1.3 +4 -0 src/gnu/usr.bin/tar/diffarch.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102180106.f1I16DT69116>