,
56 if(errcode == 1007) {
58 "\n*** A special note about internal error number 1007 ***\n" 60 "Experience suggests that a common cause of i.e. 1007\n" 61 "is unreliable memory or other hardware. The 1007 assertion\n" 62 "just happens to cross-check the results of huge numbers of\n" 63 "memory reads/writes, and so acts (unintendedly) as a stress\n" 64 "test of your memory system.\n" 66 "I suggest the following: try compressing the file again,\n" 67 "possibly monitoring progress in detail with the -vv flag.\n" 69 "* If the error cannot be reproduced, and/or happens at different\n" 70 " points in compression, you may have a flaky memory system.\n" 71 " Try a memory-test program. I have used Memtest86\n" 72 " (www.memtest86.com). At the time of writing it is free (GPLd).\n" 73 " Memtest86 tests memory much more thorougly than your BIOSs\n" 74 " power-on test, and may find failures that the BIOS doesn't.\n" 76 "* If the error can be repeatably reproduced, this is a bug in\n" 77 " bzip2, and I would very much like to hear about it. Please\n" 78 " let me know, and, ideally, save a copy of the file causing the\n" 79 " problem -- without which I will be unable to investigate it.\n" 93 if(
sizeof(
int) != 4)
return0;
94 if(
sizeof(
short) != 2)
return0;
95 if(
sizeof(
char) != 1)
return0;
160blockSize100k < 1 || blockSize100k > 9 ||
161workFactor < 0 || workFactor > 250)
204strm->total_in_lo32 = 0;
205strm->total_in_hi32 = 0;
206strm->total_out_lo32 = 0;
207strm->total_out_hi32 = 0;
260 #define ADD_CHAR_TO_BLOCK(zs,zchh0) \ 262 UInt32 zchh = (UInt32)(zchh0); \ 264 if (zchh != zs->state_in_ch && \ 265 zs->state_in_len == 1) { \ 266 UChar ch = (UChar)(zs->state_in_ch); \ 267 BZ_UPDATE_CRC( zs->blockCRC, ch ); \ 268 zs->inUse[zs->state_in_ch] = True; \ 269 zs->block[zs->nblock] = (UChar)ch; \ 271 zs->state_in_ch = zchh; \ 275 if (zchh != zs->state_in_ch || \ 276 zs->state_in_len == 255) { \ 277 if (zs->state_in_ch < 256) \ 278 add_pair_to_block ( zs ); \ 279 zs->state_in_ch = zchh; \ 280 zs->state_in_len = 1; \ 282 zs->state_in_len++; \ 346progress_out =
True;
402 returnprogress_in || progress_out;
516strm->total_in_lo32 = 0;
517strm->total_in_hi32 = 0;
518strm->total_out_lo32 = 0;
519strm->total_out_hi32 = 0;
568 if(k1 != s->
k0) { s->
k0= k1;
continue; };
574 if(k1 != s->
k0) { s->
k0= k1;
continue; };
580 if(k1 != s->
k0) { s->
k0= k1;
continue; };
604 UInt32avail_out_INIT = cs_avail_out;
606 unsigned inttotal_out_lo32_old;
611 if(c_state_out_len > 0) {
613 if(cs_avail_out == 0)
gotoreturn_notr;
614 if(c_state_out_len == 1)
break;
615*( (
UChar*)(cs_next_out) ) = c_state_out_ch;
621s_state_out_len_eq_one:
623 if(cs_avail_out == 0) {
624c_state_out_len = 1;
gotoreturn_notr;
626*( (
UChar*)(cs_next_out) ) = c_state_out_ch;
633 if(c_nblock_used > s_save_nblockPP)
637 if(c_nblock_used == s_save_nblockPP) {
638c_state_out_len = 0;
gotoreturn_notr;
640c_state_out_ch = c_k0;
643c_k0 = k1;
gotos_state_out_len_eq_one;
645 if(c_nblock_used == s_save_nblockPP)
646 gotos_state_out_len_eq_one;
650 if(c_nblock_used == s_save_nblockPP)
continue;
651 if(k1 != c_k0) { c_k0 = k1;
continue; };
655 if(c_nblock_used == s_save_nblockPP)
continue;
656 if(k1 != c_k0) { c_k0 = k1;
continue; };
659c_state_out_len = ((
Int32)k1) + 4;
693mid = (nb + na) >> 1;
694 if(indx >= cftab[mid]) nb = mid;
elsena = mid;
696 while(na - nb != 1);
738 if(k1 != s->
k0) { s->
k0= k1;
continue; };
744 if(k1 != s->
k0) { s->
k0= k1;
continue; };
750 if(k1 != s->
k0) { s->
k0= k1;
continue; };
786 if(k1 != s->
k0) { s->
k0= k1;
continue; };
791 if(k1 != s->
k0) { s->
k0= k1;
continue; };
796 if(k1 != s->
k0) { s->
k0= k1;
continue; };
845 VPrintf2(
"\n combined CRCs: stored = 0x%08x, computed = 0x%08x",
886 #define BZ_SETERR(eee) \ 888 if (bzerror != NULL) *bzerror = eee; \ 889 if (bzf != NULL) bzf->lastErr = eee; \ 909 if(c == EOF)
return True;
929(blockSize100k < 1 || blockSize100k > 9) ||
930(workFactor < 0 || workFactor > 250) ||
931(verbosity < 0 || verbosity > 4))
978 if(ferror(bzf->
handle))
996n2 = fwrite ( (
void*)(bzf->
buf),
sizeof(
UChar),
998 if(
n!= n2 || ferror(bzf->
handle))
1013 unsigned int* nbytes_in,
1014 unsigned int* nbytes_out )
1017nbytes_in,
NULL, nbytes_out,
NULL);
1025 unsigned int* nbytes_in_lo32,
1026 unsigned int* nbytes_in_hi32,
1027 unsigned int* nbytes_out_lo32,
1028 unsigned int* nbytes_out_hi32 )
1037 if(ferror(bzf->
handle))
1040 if(nbytes_in_lo32 !=
NULL) *nbytes_in_lo32 = 0;
1041 if(nbytes_in_hi32 !=
NULL) *nbytes_in_hi32 = 0;
1042 if(nbytes_out_lo32 !=
NULL) *nbytes_out_lo32 = 0;
1043 if(nbytes_out_hi32 !=
NULL) *nbytes_out_hi32 = 0;
1055n2 = fwrite ( (
void*)(bzf->
buf),
sizeof(
UChar),
1057 if(
n!= n2 || ferror(bzf->
handle))
1065 if( !abandon && !ferror ( bzf->
handle) ) {
1067 if(ferror(bzf->
handle))
1071 if(nbytes_in_lo32 !=
NULL)
1073 if(nbytes_in_hi32 !=
NULL)
1075 if(nbytes_out_lo32 !=
NULL)
1077 if(nbytes_out_hi32 !=
NULL)
1101(small != 0 && small != 1) ||
1102(verbosity < 0 || verbosity > 4) ||
1124 while(nUnused > 0) {
1186 if(ferror(bzf->
handle))
1190 n= fread ( bzf->
buf,
sizeof(
UChar),
1192 if(ferror(bzf->
handle))
1249 unsigned int* destLen,
1251 unsigned intsourceLen,
1259 if(dest ==
NULL|| destLen ==
NULL||
1261blockSize100k < 1 || blockSize100k > 9 ||
1262verbosity < 0 || verbosity > 4 ||
1263workFactor < 0 || workFactor > 250)
1272 if(ret !=
BZ_OK)
returnret;
1301 unsigned int* destLen,
1303 unsigned intsourceLen,
1310 if(dest ==
NULL|| destLen ==
NULL||
1312(small != 0 && small != 1) ||
1313verbosity < 0 || verbosity > 4)
1320 if(ret !=
BZ_OK)
returnret;
1328 if(ret ==
BZ_OK)
gotooutput_overflow_or_eof;
1336output_overflow_or_eof:
1375 #if defined(_WIN32) || defined(OS2) || defined(MSDOS) 1378 # define SET_BINARY_MODE(file) setmode(fileno(file),O_BINARY) 1380 # define SET_BINARY_MODE(file) 1393 charmode2[10] =
"";
1405writing = 0;
break;
1407writing = 1;
break;
1417 strcat(mode2, writing ?
"w":
"r");
1422 fp= (writing ? stdout : stdin);
1425 fp= fopen(path,mode2);
1428 #ifdef BZ_STRICT_ANSI 1431 fp= fdopen(fd,mode2);
1446 if(bzfp ==
NULL) {
1447 if(
fp!= stdin &&
fp!= stdout) fclose(
fp);
1497 if(bzerr ==
BZ_OK){
1519 if(
b==
NULL) {
return;}
1521 if(((
bzFile*)
b)->writing){
1523 if(bzerr !=
BZ_OK){
1529 if(
fp!=stdin &&
fp!=stdout){
1545,
"DATA_ERROR_MAGIC" 1561 interr = ((
bzFile*)
b)->lastErr;
static void add_pair_to_block(EState *s)
static Bool unRLE_obuf_to_output_SMALL(DState *s)
static void flush_RL(EState *s)
void BZ_API() BZ2_bzWrite(int *bzerror, BZFILE *b, void *buf, int len)
const char *BZ_API() BZ2_bzlibVersion(void)
static Bool handle_compress(bz_stream *strm)
static BZFILE * bzopen_or_bzdopen(const char *path, int fd, const char *mode, int open_mode)
int BZ_API() BZ2_bzRead(int *bzerror, BZFILE *b, void *buf, int len)
int BZ_API() BZ2_bzread(BZFILE *b, void *buf, int len)
static const char * bzerrorstrings[]
Int32 BZ2_indexIntoF(Int32 indx, Int32 *cftab)
int BZ_API() BZ2_bzDecompressInit(bz_stream *strm, int verbosity, int small)
static Bool copy_output_until_stop(EState *s)
void BZ_API() BZ2_bzWriteClose64(int *bzerror, BZFILE *b, int abandon, unsigned int *nbytes_in_lo32, unsigned int *nbytes_in_hi32, unsigned int *nbytes_out_lo32, unsigned int *nbytes_out_hi32)
int BZ_API() BZ2_bzDecompress(bz_stream *strm)
int BZ_API() BZ2_bzDecompressEnd(bz_stream *strm)
#define SET_BINARY_MODE(file)
void BZ_API() BZ2_bzReadClose(int *bzerror, BZFILE *b)
static void init_RL(EState *s)
int BZ_API() BZ2_bzflush(BZFILE *b)
void BZ_API() BZ2_bzclose(BZFILE *b)
static int bz_config_ok(void)
int BZ_API() BZ2_bzCompressInit(bz_stream *strm, int blockSize100k, int verbosity, int workFactor)
static Bool copy_input_until_stop(EState *s)
static void prepare_new_block(EState *s)
#define ADD_CHAR_TO_BLOCK(zs, zchh0)
const char *BZ_API() BZ2_bzerror(BZFILE *b, int *errnum)
BZFILE *BZ_API() BZ2_bzWriteOpen(int *bzerror, FILE *f, int blockSize100k, int verbosity, int workFactor)
void BZ_API() BZ2_bzReadGetUnused(int *bzerror, BZFILE *b, void **unused, int *nUnused)
static Bool isempty_RL(EState *s)
BZFILE *BZ_API() BZ2_bzdopen(int fd, const char *mode)
int BZ_API() BZ2_bzwrite(BZFILE *b, void *buf, int len)
static void * default_bzalloc(void *opaque, Int32 items, Int32 size)
void BZ2_bz__AssertH__fail(int errcode)
int BZ_API() BZ2_bzBuffToBuffCompress(char *dest, unsigned int *destLen, char *source, unsigned int sourceLen, int blockSize100k, int verbosity, int workFactor)
static void default_bzfree(void *opaque, void *addr)
static Bool unRLE_obuf_to_output_FAST(DState *s)
int BZ_API() BZ2_bzBuffToBuffDecompress(char *dest, unsigned int *destLen, char *source, unsigned int sourceLen, int small, int verbosity)
BZFILE *BZ_API() BZ2_bzopen(const char *path, const char *mode)
void BZ_API() BZ2_bzWriteClose(int *bzerror, BZFILE *b, int abandon, unsigned int *nbytes_in, unsigned int *nbytes_out)
static Bool myfeof(FILE *f)
BZFILE *BZ_API() BZ2_bzReadOpen(int *bzerror, FILE *f, int verbosity, int small, void *unused, int nUnused)
int BZ_API() BZ2_bzCompressEnd(bz_stream *strm)
int BZ_API() BZ2_bzCompress(bz_stream *strm, int action)
#define BZ_UNEXPECTED_EOF
#define BZ_SEQUENCE_ERROR
#define BZ_GET_FAST(cccc)
void BZ2_compressBlock(EState *, Bool)
#define BZ_UPDATE_CRC(crcVar, cha)
#define BZ_GET_SMALL(cccc)
#define VPrintf2(zf, za1, za2)
#define BZ_GET_FAST_C(cccc)
#define AssertH(cond, errcode)
#define BZ_INITIALISE_CRC(crcVar)
Int32 BZ2_decompress(DState *)
#define BZ_FINALISE_CRC(crcVar)
char Char
Alias for char.
if(yy_accept[yy_current_state])
static const CS_INT unused
const struct ncbi::grid::netcache::search::fields::SIZE size
const CharType(& source)[N]
int strcmp(const char *str1, const char *str2)
double r(size_t dimension_, const Int4 *score_, const double *prob_, double theta_)
UInt32 calculatedBlockCRC
UInt32 calculatedCombinedCRC
void(* bzfree)(void *, void *)
void *(* bzalloc)(void *, int, int)
unsigned int total_out_lo32
unsigned int total_out_hi32
unsigned int total_in_lo32
unsigned int total_in_hi32
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4