svn commit: r318184 - vendor/libarchive/dist/cpio/test

Martin Matuska mm at FreeBSD.org
Thu May 11 11:13:04 UTC 2017


Author: mm
Date: Thu May 11 11:13:02 2017
New Revision: 318184
URL: https://svnweb.freebsd.org/changeset/base/318184

Log:
  Update vendor/libarchive to git f2230fcaed3159d10caed63d9a20caa9fdc94c62
  
  Vendor fixes:
    #909: Fix use after free in cpio test_option_lz4
  
  Reported by:	Coverity (ngie@)

Modified:
  vendor/libarchive/dist/cpio/test/test_option_lz4.c

Modified: vendor/libarchive/dist/cpio/test/test_option_lz4.c
==============================================================================
--- vendor/libarchive/dist/cpio/test/test_option_lz4.c	Thu May 11 09:36:51 2017	(r318183)
+++ vendor/libarchive/dist/cpio/test/test_option_lz4.c	Thu May 11 11:13:02 2017	(r318184)
@@ -74,8 +74,8 @@ DEFINE_TEST(test_option_lz4)
 			free(p);
 			return;
 		}
-		free(p);
 		failure("--lz4 option is broken: %s", p);
+		free(p);
 		assertEqualInt(r, 0);
 		return;
 	}


More information about the svn-src-all mailing list