~ubuntu-branches/ubuntu/raring/calligra/raring-proposed

« back to all changes in this revision

Viewing changes to filters/words/msword-odf/wv2/src/styles.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-08-08 11:05:31 UTC
  • mto: (39.1.1 raring-proposed)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: package-import@ubuntu.com-20120808110531-pwqn96dxajv0lhq1
Tags: upstream-2.5.0
ImportĀ upstreamĀ versionĀ 2.5.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
248
248
#ifdef WV2_DEBUG_STYLESHEET
249
249
        wvlog << "cbUPX: " << cbUPX << endl;
250
250
#endif
 
251
        // do not overflow the allocated buffer grupx
 
252
        if (offset + cbUPX > grupxLen) {
 
253
            wvlog << "====> Error: grupx would overflow!" << endl;
 
254
            return false;
 
255
        }
251
256
        for ( U16 j = 0; j < cbUPX; ++j ) {
252
257
            grupx[ offset + j ] = stream->readU8();  // read the whole UPX
253
258
#ifdef WV2_DEBUG_STYLESHEET