[Webkit-unassigned] [Bug 72222] New: REGRESSION(99849): NULL-deref in updateLastMediaLine when parsing some media-queries

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Nov 12 17:06:41 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=72222

           Summary: REGRESSION(99849): NULL-deref in updateLastMediaLine
                    when parsing some media-queries
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jchaffraix at webkit.org
                CC: apavlov at chromium.org


Seems like r99849 missed a code path in CSSGrammar.y:

CSSParser* p = static_cast<CSSParser*>(parser);
if ($$)
    $$->appendMediaQuery(p->sinkFloatingMediaQuery($4));
p->updateLastMediaLine($$);

($$ can be null and we would crash in updateLastMediaLine)

I had some bandwidth today so I reduced the crashes seen in the wild and came up with a small patch. I will attach it shortly.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list