Summary: | [Content Extensions] Reduce DFA memory usage. | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Alex Christensen <achristensen> | ||||
Component: | WebCore Misc. | Assignee: | Alex Christensen <achristensen> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | ||||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Alex Christensen
2015-06-01 14:32:47 PDT
Created attachment 254013 [details]
Patch
Comment on attachment 254013 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=254013&action=review > Source/WebCore/contentextensions/DFA.cpp:43 > + + transitionCharacters.size() * sizeof(uint8_t) > + + transitionDestinations.size() * sizeof(uint8_t) This should be capacity(), not size(). Comment on attachment 254013 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=254013&action=review >> Source/WebCore/contentextensions/DFA.cpp:43 >> + + transitionDestinations.size() * sizeof(uint8_t) > > This should be capacity(), not size(). And destinations are uint32_t. |