diff options
author | Toomas Soome <tsoome@FreeBSD.org> | 2020-05-19 19:53:12 +0000 |
---|---|---|
committer | Toomas Soome <tsoome@FreeBSD.org> | 2020-05-19 19:53:12 +0000 |
commit | 22ed31c23f92a8fc2063e016e6b5ffd1087a08aa (patch) | |
tree | 3e8fdbd0b8bc532d6b81249636ca7abdbaca50c9 /sys/cddl/contrib/opensolaris | |
parent | bf9a289cf2a7553f7341c79313ed8813af09d199 (diff) | |
download | src-22ed31c23f92a8fc2063e016e6b5ffd1087a08aa.tar.gz src-22ed31c23f92a8fc2063e016e6b5ffd1087a08aa.zip |
lz4 hash table does not start zeroed
illumos issue: https://www.illumos.org/issues/12757
Submitted by: andyf
Notes
Notes:
svn path=/head/; revision=361266
Diffstat (limited to 'sys/cddl/contrib/opensolaris')
-rw-r--r-- | sys/cddl/contrib/opensolaris/common/lz4/lz4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cddl/contrib/opensolaris/common/lz4/lz4.c b/sys/cddl/contrib/opensolaris/common/lz4/lz4.c index ee7f1fbe99e2..c21d51350c2c 100644 --- a/sys/cddl/contrib/opensolaris/common/lz4/lz4.c +++ b/sys/cddl/contrib/opensolaris/common/lz4/lz4.c @@ -850,7 +850,7 @@ real_LZ4_compress(const char *source, char *dest, int isize, int osize) #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; |