mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02:00
* compress.c (init_uncompress): Use a 15 bit window size so that
the output of implementations which don't run for PGP 2 compatibility won't get garbled.
This commit is contained in:
parent
c05a2dd67c
commit
a73a76b34e
@ -1,3 +1,9 @@
|
|||||||
|
2003-03-10 Werner Koch <wk@gnupg.org>
|
||||||
|
|
||||||
|
* compress.c (init_uncompress): Use a 15 bit window size so that
|
||||||
|
the output of implementations which don't run for PGP 2
|
||||||
|
compatibility won't get garbled.
|
||||||
|
|
||||||
2003-03-05 David Shaw <dshaw@jabberwocky.com>
|
2003-03-05 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* passphrase.c (agent_get_passphrase): Fix memory leak with
|
* passphrase.c (agent_get_passphrase): Fix memory leak with
|
||||||
|
@ -116,8 +116,13 @@ init_uncompress( compress_filter_context_t *zfx, z_stream *zs )
|
|||||||
* PGP uses a windowsize of 13 bits. Using a negative value for
|
* PGP uses a windowsize of 13 bits. Using a negative value for
|
||||||
* it forces zlib not to expect a zlib header. This is a
|
* it forces zlib not to expect a zlib header. This is a
|
||||||
* undocumented feature Peter Gutmann told me about.
|
* undocumented feature Peter Gutmann told me about.
|
||||||
|
*
|
||||||
|
* We must use 15 bits for the inflator because CryptoEx uses 15
|
||||||
|
* bits thus the output would get scrambled w/o error indication
|
||||||
|
* if we would use 13 bits. For the uncompressing this does not
|
||||||
|
* matter at all.
|
||||||
*/
|
*/
|
||||||
if( (rc = zfx->algo == 1? inflateInit2( zs, -13)
|
if( (rc = zfx->algo == 1? inflateInit2( zs, -15)
|
||||||
: inflateInit( zs )) != Z_OK ) {
|
: inflateInit( zs )) != Z_OK ) {
|
||||||
log_fatal("zlib problem: %s\n", zs->msg? zs->msg :
|
log_fatal("zlib problem: %s\n", zs->msg? zs->msg :
|
||||||
rc == Z_MEM_ERROR ? "out of core" :
|
rc == Z_MEM_ERROR ? "out of core" :
|
||||||
|
Loading…
x
Reference in New Issue
Block a user