]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make clone more aggressive about copying strings to the new entry.
authorkientzle <kientzle@FreeBSD.org>
Fri, 23 Apr 2004 17:15:48 +0000 (17:15 +0000)
committerkientzle <kientzle@FreeBSD.org>
Fri, 23 Apr 2004 17:15:48 +0000 (17:15 +0000)
commitfd3f8b3142cd4f1ab39c008864b8f886537b7388
treed945b760df53021b23a1bbaa2ec3e5558fe102ae
parent1291cc3eae682ac8efaeda1225dfbc26c6ce58ea
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.
lib/libarchive/archive_entry.c