From owner-cvs-src@FreeBSD.ORG Fri Apr 23 10:15:49 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B3CC16A4CE; Fri, 23 Apr 2004 10:15:49 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1EFD843D3F; Fri, 23 Apr 2004 10:15:49 -0700 (PDT) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i3NHFmGe007522; Fri, 23 Apr 2004 10:15:48 -0700 (PDT) (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i3NHFm0S007521; Fri, 23 Apr 2004 10:15:48 -0700 (PDT) (envelope-from kientzle) Message-Id: <200404231715.i3NHFm0S007521@repoman.freebsd.org> From: Tim Kientzle Date: Fri, 23 Apr 2004 10:15:48 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libarchive archive_entry.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Apr 2004 17:15:49 -0000 kientzle 2004/04/23 10:15:48 PDT FreeBSD src repository Modified files: lib/libarchive archive_entry.c Log: Make clone more aggressive about copying strings to the new entry. The original might have pointers to user-specified strings; copying the string (instead of just the pointer) protects against the client re-using their own buffers. I'm trying hard to avoid dumping all of the 'set' string functions in favor of slower, but more predictable 'copy' semantics. Revision Changes Path 1.9 +9 -9 src/lib/libarchive/archive_entry.c