fix signature target type validation for data files of unknown type

git-svn: trunk@1023
remotes/push_mirror/metadata
Tomasz Kojm 21 years ago
parent ccf6833af3
commit 0652174ee6
  1. 5
      clamav-devel/ChangeLog
  2. 3
      clamav-devel/libclamav/matcher.c

@ -1,3 +1,8 @@
Tue Oct 19 02:53:46 CEST 2004 (tk)
----------------------------------
* libclamav/matcher.c: fix signature target type validation for data files
of unknown type
Sun Oct 17 18:33:10 CEST 2004 (tk)
----------------------------------
V 0.80

@ -150,11 +150,12 @@ static long int cli_caloff(const char *offstr, int fd)
int cli_validatesig(unsigned short target, unsigned short ftype, const char *offstr, unsigned long int fileoff, int desc, const char *virname)
{
if(target) {
if(target >= TARGET_TABLE_SIZE) {
cli_errmsg("Bad target in signature (%s)\n", virname);
return 0;
} else if(ftype) {
} else {
if(targettab[target] != ftype) {
cli_dbgmsg("Type: %d, expected: %d (%s)\n", ftype, targettab[target], virname);
return 0;

Loading…
Cancel
Save