Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | function testLirBufOOM() |
michael@0 | 2 | { |
michael@0 | 3 | var a = [ |
michael@0 | 4 | "12345678901234", |
michael@0 | 5 | "123456789012", |
michael@0 | 6 | "1234567890123456789012345678", |
michael@0 | 7 | "12345678901234567890123456789012345678901234567890123456", |
michael@0 | 8 | "f", |
michael@0 | 9 | "$", |
michael@0 | 10 | "", |
michael@0 | 11 | "f()", |
michael@0 | 12 | "(\\*)", |
michael@0 | 13 | "b()", |
michael@0 | 14 | "()", |
michael@0 | 15 | "(#)", |
michael@0 | 16 | "ABCDEFGHIJK", |
michael@0 | 17 | "ABCDEFGHIJKLM", |
michael@0 | 18 | "ABCDEFGHIJKLMNOPQ", |
michael@0 | 19 | "ABCDEFGH", |
michael@0 | 20 | "(.)", |
michael@0 | 21 | "(|)", |
michael@0 | 22 | "()$", |
michael@0 | 23 | "/()", |
michael@0 | 24 | "(.)$" |
michael@0 | 25 | ]; |
michael@0 | 26 | |
michael@0 | 27 | for (var j = 0; j < 200; ++j) { |
michael@0 | 28 | var js = "" + j; |
michael@0 | 29 | for (var i = 0; i < a.length; i++) |
michael@0 | 30 | "".match(a[i] + js) |
michael@0 | 31 | } |
michael@0 | 32 | return "ok"; |
michael@0 | 33 | } |
michael@0 | 34 | assertEq(testLirBufOOM(), "ok"); |