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

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/lib/CodeGen/VirtRegMap.h

  • 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:
139
139
 
140
140
  public:
141
141
    static char ID;
142
 
    VirtRegMap() : MachineFunctionPass(&ID), Virt2PhysMap(NO_PHYS_REG),
 
142
    VirtRegMap() : MachineFunctionPass(ID), Virt2PhysMap(NO_PHYS_REG),
143
143
                   Virt2StackSlotMap(NO_STACK_SLOT), 
144
144
                   Virt2ReMatIdMap(NO_STACK_SLOT), Virt2SplitMap(0),
145
145
                   Virt2SplitKillMap(SlotIndex()), ReMatMap(NULL),
152
152
      MachineFunctionPass::getAnalysisUsage(AU);
153
153
    }
154
154
 
 
155
    MachineFunction &getMachineFunction() const {
 
156
      assert(MF && "getMachineFunction called before runOnMAchineFunction");
 
157
      return *MF;
 
158
    }
 
159
 
155
160
    void grow();
156
161
 
157
162
    /// @brief returns true if the specified virtual register is