From b645d59b1e170af1cb0963935bd8c915e56c431c Mon Sep 17 00:00:00 2001 From: Moonchild Date: Fri, 13 Nov 2020 15:59:29 +0000 Subject: Issue #1683 - Update Brotli lib to 1.0.9 --- modules/brotli/enc/metablock_inc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/brotli/enc/metablock_inc.h') diff --git a/modules/brotli/enc/metablock_inc.h b/modules/brotli/enc/metablock_inc.h index dcc9d3c4a..ed507ef5e 100644 --- a/modules/brotli/enc/metablock_inc.h +++ b/modules/brotli/enc/metablock_inc.h @@ -71,7 +71,7 @@ static void FN(InitBlockSplitter)( *histograms_size = max_num_types; *histograms = BROTLI_ALLOC(m, HistogramType, *histograms_size); self->histograms_ = *histograms; - if (BROTLI_IS_OOM(m)) return; + if (BROTLI_IS_OOM(m) || BROTLI_IS_NULL(*histograms)) return; /* Clear only current histogram. */ FN(HistogramClear)(&self->histograms_[0]); self->last_histogram_ix_[0] = self->last_histogram_ix_[1] = 0; -- cgit v1.2.3