Bug 246391

Summary: Fix WKContentRuleListStore API tests after 255298@main
Product: WebKit Reporter: Alex Christensen <achristensen>
Component: WebCore Misc.Assignee: Alex Christensen <achristensen>
Status: RESOLVED FIXED    
Severity: Normal CC: hhjalmarsson, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   

Description Alex Christensen 2022-10-11 22:59:22 PDT
That change didn't get serialization quite right.  ModifyHeadersAction::serializedLength should've returned deserializeLength(span, sizeof(uint32_t)) + sizeof(uint32_t) but to make that serializedLength more consistent with the other serializedLength methods I just make the serialization start with the total serialized length.  Also fix a possible out-of-bounds read.
Comment 1 Alex Christensen 2022-10-11 22:59:57 PDT
Pull request: https://github.com/WebKit/WebKit/pull/5279
Comment 2 EWS 2022-10-11 23:10:36 PDT
Committed 255419@main (bdd355ff73a9): <https://commits.webkit.org/255419@main>

Reviewed commits have been landed. Closing PR #5279 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2022-10-11 23:11:19 PDT
<rdar://problem/101066138>
Comment 4 Alexey Proskuryakov 2022-10-12 15:34:51 PDT
*** Bug 246286 has been marked as a duplicate of this bug. ***