Bug 295037
| Summary: | REGRESSION (279702@main): Incorrect use of sizeof() in checkJSStringOOBUTF8() from testapi.c | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | David Kilzer (:ddkilzer) <ddkilzer> |
| Component: | JavaScriptCore | Assignee: | David Kilzer (:ddkilzer) <ddkilzer> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Bug Depends on: | 275081 | ||
| Bug Blocks: | |||
David Kilzer (:ddkilzer)
REGRESSION (279702@main): Incorrect use of sizeof() in checkJSStringOOBUTF8() from testapi.c.
Switching from stack-allocated buffers to malloc() caused sizeof() to report the size of a pointer instead of the size of a buffer.
Regressed in:
Enable -Wvla when building WebKit
<https://bugs.webkit.org/show_bug.cgi?id=275081>
<rdar://129190911>
<https://commits.webkit.org/279702@main>
<rdar://154311531>
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
David Kilzer (:ddkilzer)
Pull request: https://github.com/WebKit/WebKit/pull/47245
EWS
Committed 296699@main (8f23ef0c9c9d): <https://commits.webkit.org/296699@main>
Reviewed commits have been landed. Closing PR #47245 and removing active labels.