When reading files tagged as @config from archives, don't forget to null terminate the buffer we read from libarchive. The @config system uses c-strings, not byte counted buffers.
modified libpkg/pkg_add.c
@@ -216,8 +216,9 @@ do_extract(struct archive *a, struct archive_entry *ae, const char *location,
|
|
|
|
|
|
| - | |
| + | |
|
|
| + | |
|
|
|
|
|