~ubuntu-branches/ubuntu/precise/clamav/precise-backports

« back to all changes in this revision

Viewing changes to libclamav/bytecode.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Tautschnig, Michael Tautschnig
  • Date: 2011-10-23 23:20:17 UTC
  • mfrom: (1.3.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20111023232017-27irxbuo0rg9lh49
Tags: 0.97.3+dfsg-1
[ Michael Tautschnig ]
New upstream release: Fixes potential DoS

Show diffs side-by-side

added added

removed removed

Lines of Context:
2686
2686
                    cli_dbgmsg("Bytecode %u unpacked file\n", bc->id);
2687
2687
                lseek(fd, 0, SEEK_SET);
2688
2688
                cli_dbgmsg("***** Scanning unpacked file ******\n");
 
2689
                cctx->recursion++;
2689
2690
                ret = cli_magic_scandesc(fd, cctx);
 
2691
                cctx->recursion--;
2690
2692
                if (!cctx || !cctx->engine->keeptmp)
2691
2693
                    if (ftruncate(fd, 0) == -1)
2692
2694
                        cli_dbgmsg("ftruncate failed on %d\n", fd);