mirror of
https://github.com/google/brotli.git
synced 2024-11-21 19:20:09 +00:00
Fix buffer overflow bug in the brotli encoder.
This commit is contained in:
parent
347781947a
commit
3f655b63de
@ -553,7 +553,7 @@ int BestMaxZeroRunLengthPrefix(const std::vector<int>& v) {
|
||||
int max_run_length_prefix = max_prefix;
|
||||
RunLengthCodeZeros(v, &max_run_length_prefix, &rle_symbols, &extra_bits);
|
||||
if (max_run_length_prefix < max_prefix) break;
|
||||
HistogramLiteral histogram;
|
||||
HistogramContextMap histogram;
|
||||
for (int i = 0; i < rle_symbols.size(); ++i) {
|
||||
histogram.Add(rle_symbols[i]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user