Bug 145005
| Summary: | -Warray-bounds in CSSParser.cpp | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Michael Catanzaro <mcatanzaro> |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | Normal | CC: | mcatanzaro |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | PC | ||
| OS: | Linux | ||
Michael Catanzaro
GCC 5.1.1 thinks this is a buffer overflow:
[1987/5675] Building CXX object Source...eFiles/WebCore.dir/css/CSSParser.cpp.o
../../Source/WebCore/css/CSSParser.cpp: In member function ‘bool WebCore::CSSParser::parseShorthand(WebCore::CSSPropertyID, const WebCore::StylePropertyShorthand&, bool)’:
../../Source/WebCore/css/CSSParser.cpp:3853:41: warning: array subscript is above array bounds [-Warray-bounds]
if (!propertyFound[propIndex] && parseValue(shorthand.properties()[propIndex], important)) {
^
../../Source/WebCore/css/CSSParser.cpp:3854:44: warning: array subscript is above array bounds [-Warray-bounds]
propertyFound[propIndex] = found = true;
^
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |