Line
Link Here
|
0 |
-- ./squashfs-tools/unsquashfs.c.orig |
0 |
++ ./squashfs-tools/unsquashfs.c |
Lines 2099-2105
Link Here
|
2099 |
*/ |
2099 |
*/ |
2100 |
void *inflator(void *arg) |
2100 |
void *inflator(void *arg) |
2101 |
{ |
2101 |
{ |
2102 |
char tmp[block_size]; |
2102 |
char *tmp = malloc(block_size); |
|
|
2103 |
if(tmp == NULL) |
2104 |
EXIT_UNSQUASH("Out of memory allocating block buffer\n"); |
2103 |
|
2105 |
|
2104 |
while(1) { |
2106 |
while(1) { |
2105 |
struct cache_entry *entry = queue_get(to_inflate); |
2107 |
struct cache_entry *entry = queue_get(to_inflate); |
Lines 2122-2127
Link Here
|
2122 |
*/ |
2124 |
*/ |
2123 |
cache_block_ready(entry, res == -1); |
2125 |
cache_block_ready(entry, res == -1); |
2124 |
} |
2126 |
} |
2125 |
} |
2127 |
} |