From owner-svn-src-head@freebsd.org Fri Oct 26 21:17:51 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7EAC81088BFD; Fri, 26 Oct 2018 21:17:51 +0000 (UTC) (envelope-from mm@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3385C6A807; Fri, 26 Oct 2018 21:17:51 +0000 (UTC) (envelope-from mm@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 14B2626571; Fri, 26 Oct 2018 21:17:51 +0000 (UTC) (envelope-from mm@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w9QLHodo096796; Fri, 26 Oct 2018 21:17:50 GMT (envelope-from mm@FreeBSD.org) Received: (from mm@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w9QLHoG6096795; Fri, 26 Oct 2018 21:17:50 GMT (envelope-from mm@FreeBSD.org) Message-Id: <201810262117.w9QLHoG6096795@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mm set sender to mm@FreeBSD.org using -f From: Martin Matuska Date: Fri, 26 Oct 2018 21:17:50 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r339794 - head/contrib/libarchive/libarchive X-SVN-Group: head X-SVN-Commit-Author: mm X-SVN-Commit-Paths: head/contrib/libarchive/libarchive X-SVN-Commit-Revision: 339794 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Oct 2018 21:17:51 -0000 Author: mm Date: Fri Oct 26 21:17:50 2018 New Revision: 339794 URL: https://svnweb.freebsd.org/changeset/base/339794 Log: MFV r339792: Sync libarchive with vendor. Relevant vendor changes: RAR5 reader: more maybe-uninitialized size_t fixes for riscv64 FreeBSD build MFC after: 1 month Modified: head/contrib/libarchive/libarchive/archive_read_support_format_rar5.c Directory Properties: head/contrib/libarchive/ (props changed) Modified: head/contrib/libarchive/libarchive/archive_read_support_format_rar5.c ============================================================================== --- head/contrib/libarchive/libarchive/archive_read_support_format_rar5.c Fri Oct 26 21:17:06 2018 (r339793) +++ head/contrib/libarchive/libarchive/archive_read_support_format_rar5.c Fri Oct 26 21:17:50 2018 (r339794) @@ -1281,8 +1281,12 @@ static int process_head_file(struct archive_read* a, s struct archive_entry* entry, size_t block_flags) { ssize_t extra_data_size = 0; - size_t data_size, file_flags, file_attr, compression_info, host_os, - name_size; + size_t data_size = 0; + size_t file_flags = 0; + size_t file_attr = 0; + size_t compression_info = 0; + size_t host_os = 0; + size_t name_size = 0; uint64_t unpacked_size; uint32_t mtime = 0, crc; int c_method = 0, c_version = 0, is_dir; @@ -1297,7 +1301,7 @@ static int process_head_file(struct archive_read* a, s } if(block_flags & HFL_EXTRA_DATA) { - size_t edata_size; + size_t edata_size = 0; if(!read_var_sized(a, &edata_size, NULL)) return ARCHIVE_EOF;