<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>145005</bug_id>
          
          <creation_ts>2015-05-14 09:24:09 -0700</creation_ts>
          <short_desc>-Warray-bounds in CSSParser.cpp</short_desc>
          <delta_ts>2020-02-24 06:21:47 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1094821</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2015-05-14 09:24:09 -0700</bug_when>
    <thetext>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&amp;, bool)’:
../../Source/WebCore/css/CSSParser.cpp:3853:41: warning: array subscript is above array bounds [-Warray-bounds]
             if (!propertyFound[propIndex] &amp;&amp; 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;
                                            ^</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>