Displaying 16 results from an estimated 16 matches for "inflateinit".
2012 May 07
0
[PATCH V2] btrfs: fix message printing
...returned %d\n",
+ printk(KERN_DEBUG "btrfs: deflate in loop returned %d\n",
ret);
zlib_deflateEnd(&workspace->def_strm);
ret = -1;
@@ -252,7 +252,7 @@ static int zlib_decompress_biovec(struct list_head *ws, struct page **pages_in,
}
if (Z_OK != zlib_inflateInit2(&workspace->inf_strm, wbits)) {
- printk(KERN_WARNING "inflateInit failed\n");
+ printk(KERN_WARNING "btrfs: inflateInit failed\n");
return -1;
}
while (workspace->inf_strm.total_in < srclen) {
@@ -336,7 +336,7 @@ static int zlib_decompress(struct list_hea...
2005 Sep 12
3
Problems Compiling OpenSSH 4.2p1 on Tru64 UNIX 5.1b
...o kexdhs.o
kexgexs.o auth-krb5.o auth2-gss.o gss-serv.o gss-serv-krb5.o loginrec.o
auth-pam.o auth-shadow.o auth-sia.o md5crypt.o audit.o audit-bsm.o -L.
-Lopenbsd-compat/ -L/usr/local/include -lssh -lopenbsd-compat -lcrypto
-lrt -lz -lsecurity -ldb -lm -laud
ld:
Unresolved:
deflateInit
inflateInit
*** Exit 1
Stop.
Thanks in advance,
Giovanni
--
Ing. Giovanni Caramia
Dipartimento di Ingegneria Meccanica e Gestionale
(Sezione Macchine ed Energetica)
via Re David 200
Politecnico di Bari
70125 BARI ITALY
Phone: +39/080/5963795
Fax: +39/080/5963411
Email: g.caramia at poliba.it
PGP Pu...
2007 Apr 22
0
libswfdec/swfdec_swf_decoder.c
...eam *z;
int ret;
+ guint8 *data;
+ data = g_try_malloc (dec->bytes_total - 8);
+ if (data == NULL)
+ return FALSE;
+ s->uncompressed_buffer = swfdec_buffer_new_for_data (data, dec->bytes_total - 8);
z = &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;
+ retu...
2002 Jan 30
1
Patch: update zlib/* to 1.1.3
...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 @@
/*
-extern int ZEXPORT inflateInit OF((z_streamp strm));
+ZEXTERN int ZEXPORT inflateInit OF((z_streamp strm));
Initializes the internal stream state for decompression. The fields
next_in, avail_in, zalloc, zfree and opaque must be initialized before by
@@ -311,7 +312,7 @@
*/
-extern int ZEXPORT inflate OF((z_stream...
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
...{
- void *data;
- int len;
- z_stream *z;
+ guint8 *data;
+ 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;
- }
+...
2023 Feb 24
1
[PATCH 1/1] Add support for ZSTD compression
...+744,11 @@ start_compression_out(struct ssh *ssh, int level)
static int
start_compression_in(struct ssh *ssh)
{
- if (ssh->state->compression_in_started == 1)
+ if (ssh->state->compression_in_started == COMP_ZLIB)
inflateEnd(&ssh->state->compression_in_stream);
switch (inflateInit(&ssh->state->compression_in_stream)) {
case Z_OK:
- ssh->state->compression_in_started = 1;
+ ssh->state->compression_in_started = COMP_ZLIB;
break;
case Z_MEM_ERROR:
return SSH_ERR_ALLOC_FAIL;
@@ -734,7 +765,7 @@ compress_buffer(struct ssh *ssh, struct sshbuf *in,...
2007 Jan 22
0
Branch 'interpreter' - 3 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_swf_decoder.c test/Makefile.am test/swfedit.c test/swfedit_file.c test/swfedit_file.h test/swfedit_tag.c test/swfedit_tag.h test/swfedit_token.c test/swfedit_token.h
...if (encoded == NULL)
+ return NULL;
+ decoded = swfdec_buffer_new_and_alloc (size);
+ z.zalloc = zalloc;
+ z.zfree = zfree;
+ z.opaque = NULL;
+ z.next_in = encoded->data;
+ z.avail_in = encoded->length;
+ z.next_out = decoded->data;
+ z.avail_out = decoded->length;
+ ret = inflateInit (&z);
+ SWFDEC_DEBUG ("inflateInit returned %d", ret);
+ if (ret >= Z_OK) {
+ ret = inflate (&z, Z_SYNC_FLUSH);
+ SWFDEC_DEBUG ("inflate returned %d", ret);
+ }
+ inflateEnd (&z);
+ swfdec_buffer_unref (encoded);
+ if (ret < Z_OK) {
+ swfdec_buff...
2023 Feb 24
1
[PATCH 0/1] ZSTD compression support for OpenSSH
I added ZSTD support to OpenSSH roughly three years ago and I've been
playing with it ever since.
The nice part is that ZSTD achieves reasonable compression (like zlib)
but consumes little CPU so it is unlikely that compression becomes the
bottle neck of a transfer. The compression overhead (CPU) is negligible
even when uncompressed data is tunneled over the SSH connection (SOCKS
proxy, port
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
...(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 @@ static void
swfdec_image_jpeg3_...
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
2020 Sep 05
8
[PATCH 0/5] ZSTD compression support for OpenSSH
I added ZSTD support to OpenSSH roughly over a year and I've been
playing with it ever since.
The nice part is that ZSTD achieves reasonable compression (like zlib)
but consumes little CPU so it is unlikely that compression becomes the
bottle neck of a transfer. The compression overhead (CPU) is negligible
even when uncompressed data is tunneled over the SSH connection (SOCKS
proxy, port
2007 Jan 25
0
Branch 'interpreter' - 28 commits - configure.ac libswfdec/js libswfdec/swfdec_buffer.c libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_player.c
...#39;t have the header in the uncompressed buffer
diff --git a/libswfdec/swfdec_swf_decoder.c b/libswfdec/swfdec_swf_decoder.c
index 6539921..0bc1099 100644
--- a/libswfdec/swfdec_swf_decoder.c
+++ b/libswfdec/swfdec_swf_decoder.c
@@ -143,7 +143,7 @@ swf_inflate_init (SwfdecSwfDecoder * s)
ret = inflateInit (z);
SWFDEC_DEBUG ("inflateInit returned %d", ret);
- s->uncompressed_buffer = swfdec_buffer_new_and_alloc (dec->bytes_total);
+ s->uncompressed_buffer = swfdec_buffer_new_and_alloc (dec->bytes_total - 8);
z->next_out = s->uncompressed_buffer->data;
z->...
2007 Jan 29
0
Branch 'interpreter' - 18 commits - libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_js.c libswfdec/swfdec_js_color.c libswfdec/swfdec_js_sound.c libswfdec/swfdec_pattern.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_script.c
...fixes for the previous image decoding cleanups
diff --git a/libswfdec/swfdec_image.c b/libswfdec/swfdec_image.c
index c9df0de..2810291 100644
--- a/libswfdec/swfdec_image.c
+++ b/libswfdec/swfdec_image.c
@@ -117,7 +117,7 @@ lossless (const guint8 *zptr, int zlen,
z.avail_out = len;
ret = inflateInit (&z);
- ret = inflate (&z, Z_SYNC_FLUSH);
+ ret = inflate (&z, Z_FINISH);
if (ret != Z_STREAM_END) {
SWFDEC_WARNING ("lossless: ret == %d", ret);
}
@@ -348,9 +348,8 @@ static void
swfdec_image_lossless_load (SwfdecImage *image)
{
int format;
- int color_tabl...
2007 Feb 06
0
109 commits - configure.ac libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_codec_screen.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h
...fixes for the previous image decoding cleanups
diff --git a/libswfdec/swfdec_image.c b/libswfdec/swfdec_image.c
index c9df0de..2810291 100644
--- a/libswfdec/swfdec_image.c
+++ b/libswfdec/swfdec_image.c
@@ -117,7 +117,7 @@ lossless (const guint8 *zptr, int zlen,
z.avail_out = len;
ret = inflateInit (&z);
- ret = inflate (&z, Z_SYNC_FLUSH);
+ ret = inflate (&z, Z_FINISH);
if (ret != Z_STREAM_END) {
SWFDEC_WARNING ("lossless: ret == %d", ret);
}
@@ -348,9 +348,8 @@ static void
swfdec_image_lossless_load (SwfdecImage *image)
{
int format;
- int color_tabl...
2008 Jan 07
0
12 commits - configure.ac doc/swfdec.types Makefile.am test/crashfinder.c test/dump.c test/Makefile.am test/swfdec-extract.c test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_file.c test/swfedit_file.h test/swfedit_list.c test/swfedit_list.h
...if (encoded == NULL)
- return NULL;
- decoded = swfdec_buffer_new_and_alloc (size);
- z.zalloc = zalloc;
- z.zfree = zfree;
- z.opaque = NULL;
- z.next_in = encoded->data;
- z.avail_in = encoded->length;
- z.next_out = decoded->data;
- z.avail_out = decoded->length;
- ret = inflateInit (&z);
- SWFDEC_DEBUG ("inflateInit returned %d", ret);
- if (ret >= Z_OK) {
- ret = inflate (&z, Z_SYNC_FLUSH);
- SWFDEC_DEBUG ("inflate returned %d", ret);
- }
- inflateEnd (&z);
- swfdec_buffer_unref (encoded);
- if (ret < Z_OK) {
- swfdec_buff...
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