View | Details | Raw Unified | Return to bug 54925
Collapse All | Expand All

(-)StyleTextPropAtom.java (+4 lines)
Lines 274-279 Link Here
274
		while(pos < rawContents.length && textHandled < prsize) {
274
		while(pos < rawContents.length && textHandled < prsize) {
275
			// First up, fetch the number of characters this applies to
275
			// First up, fetch the number of characters this applies to
276
			int textLen = LittleEndian.getInt(rawContents,pos);
276
			int textLen = LittleEndian.getInt(rawContents,pos);
277
            if (textHandled + textLen > (size+1))
278
                textLen = (size+1) - textHandled;
277
			textHandled += textLen;
279
			textHandled += textLen;
278
			pos += 4;
280
			pos += 4;
279
281
Lines 309-314 Link Here
309
		while(pos < rawContents.length && textHandled < chsize) {
311
		while(pos < rawContents.length && textHandled < chsize) {
310
			// First up, fetch the number of characters this applies to
312
			// First up, fetch the number of characters this applies to
311
			int textLen = LittleEndian.getInt(rawContents,pos);
313
			int textLen = LittleEndian.getInt(rawContents,pos);
314
            if (textHandled + textLen > (size+1))
315
                textLen = (size+1) - textHandled;
312
			textHandled += textLen;
316
			textHandled += textLen;
313
			pos += 4;
317
			pos += 4;
314
318

Return to bug 54925