Bug 138226 - XSSAuditor memory leak when posting large form
Summary: XSSAuditor memory leak when posting large form
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: iPhone / iPad iOS 7.0
: P2 Normal
Assignee: Nobody
URL:
Keywords: Performance
Depends on:
Blocks:
 
Reported: 2014-10-30 13:17 PDT by Mohamed Fakhreddine
Modified: 2021-09-21 14:29 PDT (History)
2 users (show)

See Also:


Attachments
HTML file that causes Mobile Safari to crash. (3.63 MB, text/html)
2014-10-30 13:17 PDT, Mohamed Fakhreddine
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mohamed Fakhreddine 2014-10-30 13:17:47 PDT
Created attachment 240690 [details]
HTML file that causes Mobile Safari to crash.

Submitting certain forms to any endpoint that returns any response will cause XSSAuditor and JavaScriptCore to allocate hundreds of MB in memory until the process crashes, even when the form is just 6 MB in size. Attached is a sample message. Change the form target to anything that returns any response, or return a dummy response in Fiddler.

Profiling in instruments shows thousands of allocations of 528 Bytes by:
WTF::MallocHook::recordAllocation
WTF::fastMalloc
WebCore::SuffixTree
WebCore::XSSAuditor
WebCore::HTMLDocumentParser
...

I can send the trace if requested (it seems I'm only allowed one attachment here).
Comment 1 Brent Fulgham 2021-09-21 14:29:37 PDT
The XSS Auditor is removed in Bug 230499.