Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208567
b: refs/heads/master
c: dd21e9b
h: refs/heads/master
i:
  208565: 0bad03e
  208563: 6933f76
  208559: 2bc7c68
v: v3
  • Loading branch information
Prarit Bhargava authored and Linus Torvalds committed Aug 11, 2010
1 parent 91f37a8 commit f66cff4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5bf2b19320ec31d094d7370fdf536f7fd91fd799
refs/heads/master: dd21e9bdff14a9882f2c485fe533c6ce64ea2675
10 changes: 7 additions & 3 deletions trunk/lib/decompress_bunzip2.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ struct bunzip_data {
unsigned char selectors[32768]; /* nSelectors = 15 bits */
struct group_data groups[MAX_GROUPS]; /* Huffman coding tables */
int io_error; /* non-zero if we have IO error */
int byteCount[256];
unsigned char symToByte[256], mtfSymbol[256];
};


Expand Down Expand Up @@ -158,14 +160,16 @@ static int INIT get_next_block(struct bunzip_data *bd)
int *base = NULL;
int *limit = NULL;
int dbufCount, nextSym, dbufSize, groupCount, selector,
i, j, k, t, runPos, symCount, symTotal, nSelectors,
byteCount[256];
unsigned char uc, symToByte[256], mtfSymbol[256], *selectors;
i, j, k, t, runPos, symCount, symTotal, nSelectors, *byteCount;
unsigned char uc, *symToByte, *mtfSymbol, *selectors;
unsigned int *dbuf, origPtr;

dbuf = bd->dbuf;
dbufSize = bd->dbufSize;
selectors = bd->selectors;
byteCount = bd->byteCount;
symToByte = bd->symToByte;
mtfSymbol = bd->mtfSymbol;

/* Read in header signature and CRC, then validate signature.
(last block signature means CRC is for whole file, return now) */
Expand Down

0 comments on commit f66cff4

Please sign in to comment.