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; _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"