Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Oct 2018 21:15:36 +0000 (UTC)
From:      Martin Matuska <mm@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org
Subject:   svn commit: r339792 - vendor/libarchive/dist/libarchive
Message-ID:  <201810262115.w9QLFa4I096578@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mm
Date: Fri Oct 26 21:15:36 2018
New Revision: 339792
URL: https://svnweb.freebsd.org/changeset/base/339792

Log:
  Update vendor/libarchive/dist to git d661131393def793a9919d1e3fd54c9992888bd6
  
  Relevant vendor changes:
    RAR5 reader: more maybe-uninitialized size_t fixes for riscv64
                 FreeBSD build

Modified:
  vendor/libarchive/dist/libarchive/archive_read_support_format_rar5.c

Modified: vendor/libarchive/dist/libarchive/archive_read_support_format_rar5.c
==============================================================================
--- vendor/libarchive/dist/libarchive/archive_read_support_format_rar5.c	Fri Oct 26 21:04:17 2018	(r339791)
+++ vendor/libarchive/dist/libarchive/archive_read_support_format_rar5.c	Fri Oct 26 21:15:36 2018	(r339792)
@@ -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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810262115.w9QLFa4I096578>