Bug 145005

Summary: -Warray-bounds in CSSParser.cpp
Product: WebKit Reporter: Michael Catanzaro <mcatanzaro>
Component: CSSAssignee: 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:09 PDT
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;
                                            ^