svn commit: r361266 - head/sys/cddl/contrib/opensolaris/common/lz4

Toomas Soome tsoome at FreeBSD.org
Tue May 19 19:53:13 UTC 2020


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;
 


More information about the svn-src-head mailing list