Bug 145006

Summary: -Warray-bounds in RenderTableCell.cpp
Product: WebKit Reporter: Michael Catanzaro <mcatanzaro>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: mcatanzaro
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   

Description Michael Catanzaro 2015-05-14 09:24:18 PDT
GCC 5.1.1 thinks this is a buffer overflow:

[3031/5675] Building CXX object Source...re.dir/rendering/RenderTableCell.cpp.o
../../Source/WebCore/rendering/RenderTableCell.cpp: In member function ‘void WebCore::RenderTableCell::paintCollapsedBorders(WebCore::PaintInfo&, const WebCore::LayoutPoint&)’:
../../Source/WebCore/rendering/RenderTableCell.cpp:1139:28: warning: array subscript is above array bounds [-Warray-bounds]
             if (m_borders[i].borderValue.exists() && m_borders[i].shouldPaint) {
                            ^
../../Source/WebCore/rendering/RenderTableCell.cpp:1139:65: warning: array subscript is above array bounds [-Warray-bounds]
             if (m_borders[i].borderValue.exists() && m_borders[i].shouldPaint) {
                                                                 ^