WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WORKSFORME
145006
-Warray-bounds in RenderTableCell.cpp
https://bugs.webkit.org/show_bug.cgi?id=145006
Summary
-Warray-bounds in RenderTableCell.cpp
Michael Catanzaro
Reported
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) { ^
Attachments
Add attachment
proposed patch, testcase, etc.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug