lz4 hash table does not start zeroed
illumos issue: https://www.illumos.org/issues/12757 Submitted by: andyf
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user