~ubuntu-branches/ubuntu/trusty/unrar-nonfree/trusty-security

« back to all changes in this revision

Viewing changes to getbits.cpp

  • Committer: Package Import Robot
  • Author(s): Martin Meredith
  • Date: 2012-02-14 22:39:32 UTC
  • mto: (1.1.15) (5.1.13 sid)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: package-import@ubuntu.com-20120214223932-p4fuhasoxpn1dj3f
ImportĀ upstreamĀ versionĀ 4.1.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
  // So let's allocate two additional bytes for situation, when we need to
7
7
  // read only 1 byte from the last position of buffer and avoid a crash
8
8
  // from access to next 2 bytes, which contents we do not need.
9
 
  InBuf=new byte[MAX_SIZE+2];
 
9
  size_t BufSize=MAX_SIZE+2;
 
10
  InBuf=new byte[BufSize];
 
11
 
 
12
  // Ensure that we get predictable results when accessing bytes in area
 
13
  // not filled with read data.
 
14
  memset(InBuf,0,BufSize);
10
15
}
11
16
 
12
17