libclamav/filetypes.c: fix off-by-one error (bb#1639)

0.96
Tomasz Kojm 16 years ago
parent e1f64911f3
commit 2f767ff7a8
  1. 4
      ChangeLog
  2. 1
      libclamav/filetypes.c

@ -1,3 +1,7 @@
Wed Jul 15 11:20:56 CEST 2009 (tk)
----------------------------------
* libclamav/filetypes.c: fix off-by-one error (bb#1639)
Wed Jul 15 08:46:35 CEST 2009 (tk)
----------------------------------
* libclamav/mspack.c: fix valgrind warnings about use of uninitialized

@ -216,7 +216,6 @@ cli_file_t cli_filetype2(int desc, const struct cl_engine *engine)
* However when detecting whether a file is HTML or not, we need exact conversion.
* (just eliminating zeros and matching would introduce false positives */
if(encoding_normalize_toascii(&in_area, encoding, &out_area) >= 0 && out_area.length > 0) {
out_area.buffer[out_area.length] = '\0';
if(cli_ac_initdata(&mdata, root->ac_partsigs, root->ac_lsigs, CLI_DEFAULT_AC_TRACKLEN))
return ret;

Loading…
Cancel
Save