Skip to content

pixelverse-llc/safari-wasm-oom-reproducer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reproducer for Safari bug / WASM Out of Memory (not recoverable with reload)

This repository illustrates a bug in Safari on iOS 17.5.1 (and possibly earlier versions as well), where there an out of memory error occurs when loading WebAssembly code.

The bug can be triggered by repeatedly reloading the page. Once the bug appears, the following will be printed to the console:

[Error] wasm streaming compile failed: RangeError: Out of memory
	(anonymous function) (index.js:708)

Out of Memory error Safari console screenshot

Crucially, the out of memory situation persist across reloads, necessitating a closing/reopening of the tab or a browser restart.

This repo contains a file index.c which can be compiled to a index.html/.js/.wasm output by using the Emscripten toolchain. The Emscripten build invocation is encapsulated in the shell script build.sh.

For convenience, the build output is checked in to this repository.

About

Reproducer repository for WebKit issue 222097

Topics

Resources

License

Stars

Watchers

Forks

Languages