Bug 255529
Summary: | start variable should be checked before being passed to RegularExpression.match() | ||
---|---|---|---|
Product: | WebKit | Reporter: | Seija K. <gfunni234> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | ahmad.saleem792, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Seija K.
The first iteration of regex.match is guaranteed to have start be less
than content.length(). This is because of the isEmpty check at the
beginning of the function, which means that the only time start should
be checked is when it changes. This also saves us a function call when
start is at the end of the content.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/108457928>
Ahmad Saleem
PR - https://github.com/WebKit/WebKit/pull/12809