search for: avail_out

Displaying 20 results from an estimated 30 matches for "avail_out".

2003 Jun 27
1
bug? -z option and large compressed data
...o Linux Installer" and this CD-ROM includes many gzip/bzip2 compressed datas(RPMs). Let's looked at token.c. 280 tx_strm.next_in = (Bytef *) map_ptr(buf, offset, toklen); 281 tx_strm.avail_in = toklen; 282 tx_strm.next_out = (Bytef *) obuf; 283 tx_strm.avail_out = MAX_DATA_COUNT; 284 r = deflate(&tx_strm, Z_INSERT_ONLY); 285 if (r != Z_OK || tx_strm.avail_in != 0) { 286 rprintf(FERROR, "deflate on token returned %d (%d bytes left)\n", 287 r, tx_strm.avail_in); 288 ex...
2013 Mar 15
0
[PATCH 4.1] Add DomU xz kernel decompression
...iled to alloc memory", what); goto lzma_cleanup; } - stream.next_in = dom->kernel_blob; - stream.avail_in = dom->kernel_size; + stream->next_in = dom->kernel_blob; + stream->avail_in = dom->kernel_size; - stream.next_out = out_buf; - stream.avail_out = dom->kernel_size; + stream->next_out = out_buf; + stream->avail_out = dom->kernel_size; for ( ; ; ) { - ret = lzma_code(&stream, action); + ret = lzma_code(stream, action); if ( ret == LZMA_STREAM_END ) { - DOMPRINTF(&qu...
2016 Feb 17
0
[PATCH supermin v2 1/4] init: Uncompress modules before adding them to the mini initrd.
...bose) - fprintf (stderr, "supermin: running xz\n"); - FILE *fd = fopen (filename, "r"); - if (!fd) { - perror("popen failed"); - exit (EXIT_FAILURE); - } - char tmp_out[tmpsize]; - strm.avail_in = 0; - strm.next_out = tmp_out; - strm.avail_out = tmpsize; - - lzma_action action = LZMA_RUN; - - while (1) { - if (strm.avail_in == 0) { - strm.next_in = tmp; - strm.avail_in = fread(tmp, 1, tmpsize, fd); - - if (ferror(fd)) { - // POSIX says that fread() sets errno if - // an error occurred. ferror(...
2016 Feb 17
2
[PATCH supermin 0/2] Allow an alternate libc to be used for init.
Allow an alternate libc, such as dietlibc, to be used for the init binary in the supermin appliance. Rich.
2015 Apr 14
2
[Bug 11215] New: compression/zlib errors discard the zlib error message
...sync error: error in rsync protocol data stream (code 12) at io.c(226) [generator=3.1.0] The first error (inflate returned -3 (0 bytes)) was tracked in token.c: > case r_inflating: > rx_strm.next_out = (Bytef *)dbuf; > rx_strm.avail_out = AVAIL_OUT_SIZE(CHUNK_SIZE); > r = inflate(&rx_strm, Z_NO_FLUSH); > n = AVAIL_OUT_SIZE(CHUNK_SIZE) - rx_strm.avail_out; > if (r != Z_OK) { > rprintf(FERROR, "inflate returned %d...
2002 Jul 01
0
Memory allocation gone awry with OpenSSH 3.(3,4)p1
...al: buffer_append_space: alloc 10506240 not supported" anytime privsep is on and compression is on. After some digging, we were able to trace the problem to "buffer_uncompress" in compress.c - it seems that in some circumstances the inflate call returns Z_OK and incoming_stream.avail_out == 0, thus the program alloc's another sizeof(buf)-0 = 4096 bytes for the output_buffer, then repeats the call to inflate, which again returns status==0 and avail_out==0, thus entering an infinite loop. This is what happens under strace: =====[cut here]===== [pid 8379] old_mmap(NULL, 151...
2013 Aug 19
5
[PATCH v2 0/3 supermin] URPMI & xz support.
Joseph, Please try my modified versions of these patches. These are compile-tested on Fedora and they don't break any existing functionality, but I don't have either urpmi nor a statically-linked xz so I cannot fully test them. I have also fixed detection of zlib (2/3). Rich.
2014 Jul 29
4
[PATCH 0/2] supermin: improve handling of memory
Hi, the two patches improve the way memory is handled in supermin, by cleanly exiting on memory allocation failures, and free'ing memory when not needed (to keep working and not run out of memory). Pino Toscano (2): Check for failures in memory allocations Free memory buffers when not used src/ext2fs-c.c | 13 +++++++++++-- src/init.c | 13 +++++++++++++ 2 files changed, 24
2016 Feb 17
8
[PATCH supermin 0/2] Allow an alternate libc to be used for init.
v1 -> v2: - If we split out the init program into a separate init/ directory, that makes it much easier to build against an alternate libc. I tried to build against uClibc, but uClibc requires an entire build chain, which looked like it was going to be a massive ballache. Rich.
2007 Apr 22
0
libswfdec/swfdec_swf_decoder.c
...p;s->z; z->zalloc = zalloc; z->zfree = zfree; ret = inflateInit (z); SWFDEC_DEBUG ("inflateInit returned %d", ret); - s->uncompressed_buffer = swfdec_buffer_new_and_alloc (dec->bytes_total - 8); z->next_out = s->uncompressed_buffer->data; z->avail_out = s->uncompressed_buffer->length; z->opaque = NULL; + return TRUE; } static int @@ -168,7 +173,8 @@ swf_parse_header1 (SwfdecSwfDecoder * s) s->compressed = (sig1 == 'C'); if (s->compressed) { SWFDEC_DEBUG ("compressed"); - swf_inflate_init (s)...
2007 Jan 18
0
Branch 'interpreter' - 4 commits - libswfdec/js libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_codec_screen.c libswfdec/swfdec_image.c libswfdec/swfdec_script.c libswfdec/swfdec_swf_decoder.c libswfdec/swfdec_tag.c
...z_stream z = { NULL, }; int ret; - z = g_new0 (z_stream, 1); - z->zalloc = zalloc; - z->zfree = zfree; - z->opaque = NULL; - - z->next_in = zptr; - z->avail_in = zlen; - - data = NULL; - len = 0; - ret = inflateInit (z); - while (z->avail_in > 0) { - if (z->avail_out == 0) { - len += 1024; - data = g_realloc (data, len); - z->next_out = data + z->total_out; - z->avail_out += 1024; - } - ret = inflate (z, Z_SYNC_FLUSH); - if (ret != Z_OK) - break; - } + z.zalloc = zalloc; + z.zfree = zfree; + z.opaque = NULL; + + d...
2009 Dec 11
4
rsync hangs during transfer
I am running the following rsync command to synchronize directories between two servers: rsync -axvz --delete-after -e ssh /SRCDIR/ blabla at DEST:/DESTDIR The transfer starts and after a short while it appears to hang after some files have been transferred. The process establishes connection on both sides so I did an strace from the remote machine (using the rsync-debug script as described in
2002 Aug 05
5
[patch] read-devices
...offset, n); - tx_strm.avail_in = n; - nb -= n; - offset += n; + + map_ptr(buf, offset, n); + tx_strm.next_in = (Bytef *)buf->m_ptr; + tx_strm.avail_in = buf->m_len; + nb -= buf->m_len; + offset += buf->m_len; + data_read += buf->m_len; } if (tx_strm.avail_out == 0) { tx_strm.next_out = (Bytef *)(obuf + 2); tx_strm.avail_out = MAX_DATA_COUNT; @@ -276,10 +286,12 @@ } else if (token != -2) { /* add the data in the current block to the compressor's history and hash table */ - tx_strm.next_in = (Bytef *) map_ptr(buf, offset, tokle...
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
2002 Apr 20
1
rsync breaks on FreeBSD without -O2?(fwd from grog@FreeBSD.org) PR 36998
...t main.c:921 #14 0x804a01d in _start () (gdb) p s $1 = (inflate_blocks_statef *) 0x807b040 (gdb) p *s $2 = {dummy = 6} (gdb) p z $3 = 0x80777c0 (gdb) p *z $4 = {next_in = 0x8091ff6 "!.?Y?????", avail_in = 9, total_in = 16374, next_out = 0x809a000 <Address 0x809a000 out of bounds>, avail_out = 0, total_out = 98304, msg = 0x0, state = 0x8078100, zalloc = 0x8064f18 <zcalloc>, zfree = 0x8064f30 <zcfree>, opaque = 0x0, data_type = 0, adler = 0, reserved = 0} >How-To-Repeat: transfer a large (binary?) file with compression on. local to local transfers also fail. rsyn...
2007 Feb 13
0
9 commits - libswfdec/js libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_codec_screen.c libswfdec/swfdec_image.c libswfdec/swfdec_script.c test/Makefile.am test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_file.c
...- -static guint8 * -lossless (const guint8 *zptr, int zlen, int len) -{ - guint8 *data; - z_stream z = { NULL, }; - int ret; - - z.zalloc = zalloc; - z.zfree = zfree; - z.opaque = NULL; - - data = g_malloc (len); - z.next_in = (Bytef *) zptr; - z.avail_in = zlen; - z.next_out = data; - z.avail_out = len; - - ret = inflateInit (&z); - ret = inflate (&z, Z_FINISH); - if (ret != Z_STREAM_END) { - SWFDEC_WARNING ("lossless: ret == %d", ret); - } - inflateEnd (&z); - - return data; -} - - int swfdec_image_jpegtables (SwfdecSwfDecoder * s) { @@ -267,7 +226,6 @@ st...
2020 Mar 24
4
ZSTD compression support for OpenSSH
I hacked zstd support into OpenSSH a while ago and just started to clean it up in the recent days. The cleanup includes configuration support among other things that I did not have. During testing I noticed the following differences compared to zlib: - highly interactive shell output (as in refreshed at a _very_ high rate) may result in higher bandwidth compared to zlib. Since zstd is quicker
2002 Jan 30
1
Patch: update zlib/* to 1.1.3
...een produced (only when flush is set to Z_FINISH), Z_STREAM_ERROR if the stream state was inconsistent (for example - if next_in or next_out was NULL), Z_BUF_ERROR if no progress is possible. + if next_in or next_out was NULL), Z_BUF_ERROR if no progress is possible + (for example avail_in or avail_out was zero). */ -extern int ZEXPORT deflateEnd OF((z_streamp strm)); +ZEXTERN int ZEXPORT deflateEnd OF((z_streamp strm)); /* All dynamically allocated data structures for this stream are freed. This function discards any unprocessed input and does not flush any @@ -291,7 +292,7 @@...
2009 Jan 13
28
Warning and BUG with btrfs and corrupted image
Hi, when mounting an intentionally corrupted btrfs filesystem i get the following warning and bug message. The image can be found here www.cccmz.de/~snakebyte/btrfs.2.img.bck.bz2 [ 297.406152] device fsid e14cf01de423381a-4bd40b603870018a <6>devid 2147483649 transid 9 /dev/loop0 [ 297.411937] ------------[ cut here ]------------ [ 297.412207] WARNING: at fs/btrfs/disk-io.c:805
2001 Aug 06
1
merge rsync+ into rsync (was Re: rsync-2.4.7 NEWS file)
> Just curious: what about the rsync+ patch? Thanks for the reminder. I've just committed Jos's rsync+ patch onto the "branch_mbp_rsyncplus_merge" branch. If it works OK and nobody screams I will move it across onto the main tree tomorrow or Wednesday. I see the patch doesn't add documentation about the new options to the man page, so we should fix that in the future.