fix possible crash

git-svn: trunk@1633
remotes/push_mirror/metadata
Tomasz Kojm 21 years ago
parent 289615f706
commit 6698f32757
  1. 4
      clamav-devel/ChangeLog
  2. 4
      clamav-devel/libclamav/mspack/qtmd.c

@ -1,3 +1,7 @@
Thu Jun 23 22:52:43 CEST 2005 (tk)
----------------------------------
* libclamav/mspack/qtmd.c: fix possible crash
Thu Jun 23 15:49:10 CEST 2005 (tk)
----------------------------------
* clamd: revert the queue limit patch

@ -250,7 +250,9 @@ struct qtmd_stream *qtmd_init(struct mspack_system *system,
if (!system) return NULL;
/* Quantum supports window sizes of 2^10 (1Kb) through 2^21 (2Mb) */
if (window_bits < 10 || window_bits > 21) return NULL;
/* tk: temporary fix: only process 32KB+ window sizes */
if (window_bits < 15 || window_bits > 21) return NULL;
input_buffer_size = (input_buffer_size + 1) & -2;
if (input_buffer_size < 2) return NULL;

Loading…
Cancel
Save