~ubuntu-branches/ubuntu/jaunty/clamav/jaunty-backports

« back to all changes in this revision

Viewing changes to libclamav/7z/Archive/7z/7zDecode.c

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-10-02 15:36:00 UTC
  • mfrom: (10.1.6 sid)
  • mto: This revision was merged to the branch mainline in revision 13.
  • Revision ID: james.westby@ubuntu.com-20101002153600-2tx3vki1u55cdrjy
Tags: 0.96.3+dfsg-2ubuntu0.10.04.1
Microversion update to 0.96.3 for Lucid (LP: #653738)

Show diffs side-by-side

added added

removed removed

Lines of Context:
170
170
          outSizeCur = (SizeT)unpackSize;
171
171
          if (outSizeCur != unpackSize)
172
172
            return SZ_ERROR_MEM;
173
 
          temp = (Byte *)IAlloc_Alloc(allocMain, outSizeCur);
 
173
          if (outSizeCur)
 
174
              temp = (Byte *)IAlloc_Alloc(allocMain, outSizeCur);
 
175
          else
 
176
              temp = 0;
174
177
          if (temp == 0 && outSizeCur != 0)
175
178
            return SZ_ERROR_MEM;
176
179
          outBufCur = tempBuf[1 - ci] = temp;