Debian Codegraph @

debian/patches/ignore-tree-size-check.patch

raw
1 --- libsmacker-1.2.0.orig/smacker.c
2 +++ libsmacker-1.2.0/smacker.c
3 @@ -405,14 +405,6 @@ static int smk_huff16_build(struct smk_h
4 t->tree = NULL;
5 return 0;
6 }
7 -
8 - /* check that we completely filled the tree */
9 - if (limit != t->size) {
10 - fputs("libsmacker::smk_huff16_build() - ERROR: failed to completely decode huff16 tree\n", stderr);
11 - free(t->tree);
12 - t->tree = NULL;
13 - return 0;
14 - }
15 } else {
16 if ((t->tree = malloc(sizeof(unsigned int))) == NULL) {
17 perror("libsmacker::smk_huff16_build() - ERROR: failed to malloc() huff16 tree");
18 @@ -420,7 +412,8 @@ static int smk_huff16_build(struct smk_h
19 }
20
21 t->tree[0] = 0;
22 - //t->cache[0] = t->cache[1] = t->cache[2] = 0;
23 + t->cache[0] = t->cache[1] = t->cache[2] = 0;
24 + return 1;
25 }
26
27 /* Check final end tag. */