mirror of
https://github.com/apple/container.git
synced 2026-10-14 01:59:18 +00:00
finishEncoding() called archive_free() and then passed the freed pointer to wrap(), which would call archive_error_string() on it if the return code was not ARCHIVE_OK. Fix by nil-ing the pointer before freeing and throwing directly without attempting to read the (already freed) error string.