Changeset 10959 in webkit
- Timestamp:
- Oct 25, 2005, 3:26:30 PM (20 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r10956 r10959 1 2005-10-25 Beth Dakin <bdakin@apple.com> 2 3 Layout test for <rdar://problem/4148730> SureSec si#182 safari heap overflow 4 The fix is in WebCore. 5 6 * fast/table/giantRowspan-expected.checksum: Added. 7 * fast/table/giantRowspan-expected.png: Added. 8 * fast/table/giantRowspan-expected.txt: Added. 9 * fast/table/giantRowspan.html: Added. 10 1 11 2005-10-25 Vicki Murley <vicki@apple.com> 2 12 -
trunk/WebCore/ChangeLog-2005-12-19
r10957 r10959 1 2005-10-25 Beth Dakin <bdakin@apple.com> 2 3 Reviewed by Maciej 4 5 Fix for <rdar://problem/4148730> SureSec si#182 safari heap overflow. 6 When a table has a really huge rowSpan, Safari used to crash because 7 the malloc of the grid for the table failed. This fix just checks for 8 the success of the malloc. 9 10 * khtml/rendering/render_table.cpp: 11 (RenderTableSection::ensureRows): Return false if the grid resize is not 12 successful. 13 (RenderTableSection::addCell): Return early if ensureRows() returned false. 14 * khtml/rendering/render_table.h: Make ensureRows() return a bool instead 15 of void. 16 1 17 2005-10-25 Adele Peterson <adele@apple.com> 2 18 -
trunk/WebCore/khtml/rendering/render_table.cpp
r10755 r10959 903 903 } 904 904 905 voidRenderTableSection::ensureRows(int numRows)905 bool RenderTableSection::ensureRows(int numRows) 906 906 { 907 907 int nRows = gridRows; 908 908 if (numRows > nRows) { 909 909 if (numRows > static_cast<int>(grid.size())) 910 grid.resize(numRows*2+1); 910 if (!grid.resize(numRows*2+1)) 911 return false; 911 912 912 913 gridRows = numRows; … … 920 921 } 921 922 923 return true; 922 924 } 923 925 … … 992 994 993 995 // make sure we have enough rows 994 ensureRows( cRow + rSpan ); 996 if (!ensureRows( cRow + rSpan )) 997 return; 995 998 996 999 int col = cCol; -
trunk/WebCore/khtml/rendering/render_table.h
r10755 r10959 268 268 void recalcCells(); 269 269 protected: 270 void ensureRows( int numRows);270 bool ensureRows(int numRows); 271 271 void clearGrid(); 272 272 };
Note:
See TracChangeset
for help on using the changeset viewer.