mirror of
https://github.com/google/brotli.git
synced 2024-11-08 13:20:05 +00:00
Merge pull request #45 from lvandeve/master
Propagate error condition from ReadHuffmanCodeLengths()
This commit is contained in:
commit
c9cc258cdd
@ -323,7 +323,7 @@ static int ReadHuffmanCode(int alphabet_size,
|
||||
case BROTLI_STATE_SUB_HUFFMAN_LENGTH_SYMBOLS:
|
||||
ok = ReadHuffmanCodeLengths(s->code_length_code_lengths,
|
||||
alphabet_size, s->code_lengths, s);
|
||||
if (ok == 2) return 2;
|
||||
if (ok != 1) return ok;
|
||||
s->sub_state[1] = BROTLI_STATE_SUB_HUFFMAN_DONE;
|
||||
/* No break, go to next state */
|
||||
case BROTLI_STATE_SUB_HUFFMAN_DONE:
|
||||
|
Loading…
Reference in New Issue
Block a user