|
Randomize the seed used for string hashing. This helps guard against
CPU-eating DOS attacks against node.js servers. Based on code from
Bert Belder. This version only solves the issue for those that compile
V8 themselves or those that do not use snapshots. A snapshot-based
precompiled V8 will still have predictable string hash codes.
Committed: http://code.google.com/p/v8/source/detail?r=10330
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+158 lines, -66 lines) |
Patch |
|
M |
src/arm/code-stubs-arm.cc
|
View
|
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
src/flag-definitions.h
|
View
|
|
1 chunk |
+6 lines, -0 lines |
2 comments
|
Download
|
|
M |
src/heap.h
|
View
|
|
3 chunks |
+8 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/heap.cc
|
View
|
|
2 chunks |
+16 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/ia32/code-stubs-ia32.cc
|
View
|
|
1 chunk |
+18 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/mips/code-stubs-mips.cc
|
View
|
|
2 chunks |
+9 lines, -5 lines |
2 comments
|
Download
|
|
M |
src/objects.h
|
View
|
|
3 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/objects.cc
|
View
|
|
14 chunks |
+51 lines, -27 lines |
2 comments
|
Download
|
|
M |
src/objects-inl.h
|
View
|
|
3 chunks |
+10 lines, -7 lines |
0 comments
|
Download
|
|
M |
src/profile-generator.cc
|
View
|
|
4 chunks |
+9 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/x64/code-stubs-x64.cc
|
View
|
|
1 chunk |
+7 lines, -4 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/debug-evaluate-locals-optimized.js
|
View
|
|
2 chunks |
+7 lines, -5 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/debug-evaluate-locals-optimized-double.js
|
View
|
|
1 chunk |
+6 lines, -4 lines |
0 comments
|
Download
|
Total messages: 6 (0 generated)
|