~ubuntu-branches/ubuntu/maverick/clamav/maverick-security

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Marc Deslauriers
  • Date: 2011-02-23 14:27:51 UTC
  • mfrom: (0.35.17 sid)
  • Revision ID: james.westby@ubuntu.com-20110223142751-o9xb8jyvhkh75d0n
Tags: 0.96.5+dfsg-1ubuntu1.10.10.2
* SECURITY UPDATE: denial of service via double free in vba processing
  - libclamav/vba_extract.c: set buf to NULL when it gets freed.
  - http://git.clamav.net/gitweb?p=clamav-devel.git;a=commit;h=d21fb8d975f8c9688894a8cef4d50d977022e09f
  - CVE-2011-1003

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
using namespace llvm;
25
25
 
26
26
char UnifyFunctionExitNodes::ID = 0;
27
 
static RegisterPass<UnifyFunctionExitNodes>
28
 
X("mergereturn", "Unify function exit nodes");
 
27
INITIALIZE_PASS(UnifyFunctionExitNodes, "mergereturn",
 
28
                "Unify function exit nodes", false, false);
29
29
 
30
30
Pass *llvm::createUnifyFunctionExitNodesPass() {
31
31
  return new UnifyFunctionExitNodes();
35
35
  // We preserve the non-critical-edgeness property
36
36
  AU.addPreservedID(BreakCriticalEdgesID);
37
37
  // This is a cluster of orthogonal Transforms
38
 
  AU.addPreservedID(PromoteMemoryToRegisterID);
 
38
  AU.addPreserved("mem2reg");
39
39
  AU.addPreservedID(LowerSwitchID);
40
40
}
41
41