Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 May 2020 19:53:12 +0000 (UTC)
From:      Toomas Soome <tsoome@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r361266 - head/sys/cddl/contrib/opensolaris/common/lz4
Message-ID:  <202005191953.04JJrCp2045655@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tsoome
Date: Tue May 19 19:53:12 2020
New Revision: 361266
URL: https://svnweb.freebsd.org/changeset/base/361266

Log:
  lz4 hash table does not start zeroed
  
  illumos issue: https://www.illumos.org/issues/12757
  
  Submitted by:	andyf

Modified:
  head/sys/cddl/contrib/opensolaris/common/lz4/lz4.c

Modified: head/sys/cddl/contrib/opensolaris/common/lz4/lz4.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/common/lz4/lz4.c	Tue May 19 18:41:46 2020	(r361265)
+++ head/sys/cddl/contrib/opensolaris/common/lz4/lz4.c	Tue May 19 19:53:12 2020	(r361266)
@@ -850,7 +850,7 @@ real_LZ4_compress(const char *source, char *dest, int 
 #if defined(_KERNEL) || defined(_FAKE_KERNEL)
 	void *ctx = kmem_cache_alloc(lz4_ctx_cache, KM_NOSLEEP);
 #else
-	void *ctx = malloc(sizeof(struct refTables));
+	void *ctx = calloc(1, sizeof(struct refTables));
 #endif
 	int result;
 



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