Bug 249380 - WTF::Vector: null pointer check for mem functions parameters
Summary: WTF::Vector: null pointer check for mem functions parameters
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-12-15 01:55 PST by Ahmad Saleem
Modified: 2022-12-22 01:56 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ahmad Saleem 2022-12-15 01:55:26 PST
Hi Team,,

While going through Blink's commit, I came across another potential patch, which can be discussed to harden Webkit by introducing null check.

Blink Commit - https://chromium.googlesource.com/chromium/blink/+/720d15358dc57c4b7b0a41ef52e2f16888e0a554

Webkit GitHub Source - https://github.com/WebKit/WebKit/blob/d80ae68ecc7a4a5756a38de4a2eb3d2360375012/Source/WTF/wtf/Vector.h#L157 & https://github.com/WebKit/WebKit/blob/d80ae68ecc7a4a5756a38de4a2eb3d2360375012/Source/WTF/wtf/Vector.h#L187

Appreciate if someone can share input whether we need this or not.

Thanks!
Comment 1 Radar WebKit Bug Importer 2022-12-22 01:56:17 PST
<rdar://problem/103630836>