Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Side by Side Diff: tests/contest_issues/issue44.html

Issue 1092005: Issue 1092005 (Closed) Base URL: http://nativeclient.googlecode.com/svn/trunk/src/native_client/
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <!-- Issue 44 from the Native Client security contest --> 2 <!-- Issue 44 from the Native Client security contest -->
3 <head> 3 <head>
4 <title>Native Client Security Contest -- Issue 44</title> 4 <title>Native Client Security Contest -- Issue 44</title>
5 </head> 5 </head>
6 <script type="application/x-javascript"> 6 <script type="application/x-javascript">
7 var server; 7 var server;
8 var timeout; 8 var timeout;
9 var PostInit = function() { 9 var PostInit = function() {
10 server = document.getElementById('nacl_server'); 10 server = document.getElementById('nacl_server');
(...skipping 10 matching lines...) Expand all
21 var cjetm = function() { 21 var cjetm = function() {
22 var socket_address2 = server.start_server(); 22 var socket_address2 = server.start_server();
23 var con_sock = socket_address2.connect(); 23 var con_sock = socket_address2.connect();
24 alert('about to boom!'); 24 alert('about to boom!');
25 var region_size = 2147483648; 25 var region_size = 2147483648;
26 var shared_memory = server.__shmFactory(region_size); 26 var shared_memory = server.__shmFactory(region_size);
27 } 27 }
28 </script> 28 </script>
29 <body onload="PostInit()" onunload="ClearTimeout();"> 29 <body onload="PostInit()" onunload="ClearTimeout();">
30 <embed type="application/x-nacl-srpc" id="nacl_server" 30 <embed type="application/x-nacl-srpc" id="nacl_server"
31 width="0" height="0" src="srpc_nrd_server.nexe" /> 31 width="0" height="0" nexe="srpc_nrd_server">
32 32 <noembed>
33 Your browser does not appear to support Native Client.
34 Visit http://code.google.com/p/nativeclient/ to get started.
35 <noembed/>
36 </embed>
33 <button type="button" id="mybutton" disabled="true" 37 <button type="button" id="mybutton" disabled="true"
34 onclick="cjetm();">Crash me</button> 38 onclick="cjetm();">Crash me</button>
35 <p> 39 <p>
36 <b>Note:</b> For the purposes of contest issue #44, the actual expected 40 <b>Note:</b> For the purposes of contest issue #44, the actual expected
37 result when clicking the "Crash me" button is a browser that continues 41 result when clicking the "Crash me" button is a browser that continues
38 to function properly. 42 to function properly.
39 </p> 43 </p>
40 </body> 44 </body>
41 </html> 45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698