haikuwebkit/LayoutTests/crypto
Rob Buis 56d23037ee Null check ArrayBufferView RefPtr
https://bugs.webkit.org/show_bug.cgi?id=221569

Patch by Rob Buis <rbuis@igalia.com> on 2021-02-27
Reviewed by Ryosuke Niwa.

Source/JavaScriptCore:

Null check ArrayBufferView RefPtr before using it.

* runtime/JSArrayBufferViewInlines.h:
(JSC::JSArrayBufferView::unsharedImpl):

LayoutTests:

Add test to verify oom situation does not result in a crash.

* crypto/crypto-random-values-oom-expected.txt: Added.
* crypto/crypto-random-values-oom.html: Added.
* platform/win/TestExpectations:

Canonical link: https://commits.webkit.org/234670@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@273624 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-02-27 14:25:38 +00:00
..
resources
subtle Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
workers
crypto-gc-expected.txt
crypto-gc.html
crypto-key-algorithm-gc-expected.txt
crypto-key-algorithm-gc.html
crypto-key-usages-gc-expected.txt
crypto-key-usages-gc.html
crypto-random-values-expected.txt
crypto-random-values-limits-expected.txt
crypto-random-values-limits.html
crypto-random-values-oom-expected.txt Null check ArrayBufferView RefPtr 2021-02-27 14:25:38 +00:00
crypto-random-values-oom.html Null check ArrayBufferView RefPtr 2021-02-27 14:25:38 +00:00
crypto-random-values-types-expected.txt
crypto-random-values-types.html
crypto-random-values.html