Displaying 4 results from an estimated 4 matches for "needbit".
Did you mean:
needbits
2020 Jun 18
1
[PATCH] fix warnings with GCC 10
...8cf4c 100644
--- a/usr/klibc/zlib/inflate.c
+++ b/usr/klibc/zlib/inflate.c
@@ -649,6 +649,7 @@ int flush;
if (state->flags & 0x0200) CRC2(state->check, hold);
INITBITS();
state->mode = TIME;
+ /* fallthrough */
case TIME:
NEEDBITS(32);
if (state->head != Z_NULL)
@@ -656,6 +657,7 @@ int flush;
if (state->flags & 0x0200) CRC4(state->check, hold);
INITBITS();
state->mode = OS;
+ /* fallthrough */
case OS:
NEEDBITS(16);
if...
2012 Aug 20
13
[PATCH 00/12] Multidisk support
Hello,
the following patches should get multidisk access working.
The syntax accepted is the following:
(hdx,y)/path/to/file
where x is the disk number and start at 0 and the y is the partition number starting at 1. So (hd0,1) is the first partition of the first disk.
the other accepted syntax is using MBR's 32 bits disk signature so for example:
(mbr:0x12345678,2)/foo/bar
would address
2015 Apr 14
2
[Bug 11215] New: compression/zlib errors discard the zlib error message
...}
> break;
The problem is that -3 refers to Z_DATA_ERROR. This error is returned whenever
the zlib state machine enters the "BAD" state (inflate.c), e.g.
> case HCRC:
> if (state->flags & 0x0200) {
> NEEDBITS(16);
> if (hold != (state->check & 0xffff)) {
> strm->msg = (char *)"header crc mismatch";
> state->mode = BAD;
> break;
> }
> INITBITS();
>...
2007 Nov 15
0
6 commits - libswfdec/compiler.c libswfdec/swfdec_as_date.h libswfdec/swfdec_text_format.c libswfdec/swfdec_xml.c test/dump.c test/render.c test/render-fast.c
...(fn,O_RDONLY);
- if(fd<0){
- perror(fn);
- exit(1);
- }
-
- ret = fstat(fd, &sb);
- if(ret<0){
- perror("stat");
- exit(1);
- }
-
- len = sb.st_size;
- data = malloc(len);
- ret = read(fd, data, len);
- if(ret<0){
- perror("read");
- exit(1);
- }
-
- ret = SWF_NEEDBITS;
- i = 0;
- while(ret != SWF_EOF){
- ret = swfdec_decoder_parse(s);
- //fprintf(stderr,"swf_parse returned %d\n",ret);
- if(ret == SWF_NEEDBITS){
- if(i==len){
- printf("needbits at eof\n");
- }
- if(i+1000 < len){
- ret = swfdec_decoder_add_data(s,data + i,10...