Bug 145006 - -Warray-bounds in RenderTableCell.cpp
Summary: -Warray-bounds in RenderTableCell.cpp
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-14 09:24 PDT by Michael Catanzaro
Modified: 2020-02-24 06:21 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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) {
                                                                 ^