Commit 9382b3b
deps: V8: cherry-pick e0a109c
Original commit message:
[api] Implement StartupData::CanBeRehashed() for the snapshot blob
This enables the embedder to check if the snapshot generated
from SnapshotCreator::CreateBlob() can be rehashed and the seed
can be recomputed during deserialization.
The lack of this functionality resulted in a temporary vunerability
in Node.js: #27365
Change-Id: I88d52337217c40f79c26438be3c87d2db874d980
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1578661
Commit-Queue: Joyee Cheung <joyee@igalia.com>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#61175}
Refs: v8/v8@e0a109c
PR-URL: #27533
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Refael Ackermann (רפאל פלחי) <refack@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>1 parent 6014429 commit 9382b3bCopy full SHA for 9382b3b
File tree
Expand file treeCollapse file tree
6 files changed
+20
-3
lines changedOpen diff view settings
Filter options
- deps/v8
- include
- src
- snapshot
- test/cctest
Expand file treeCollapse file tree
6 files changed
+20
-3
lines changedOpen diff view settings
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
38 | 38 | |
39 | 39 | |
40 | 40 | |
41 | | - |
| 41 | + |
42 | 42 | |
43 | 43 | |
44 | 44 | |
|
Collapse file
+7Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
8605 | 8605 | |
8606 | 8606 | |
8607 | 8607 | |
| 8608 | + |
| 8609 | + |
| 8610 | + |
| 8611 | + |
| 8612 | + |
| 8613 | + |
| 8614 | + |
8608 | 8615 | |
8609 | 8616 | |
8610 | 8617 | |
|
Collapse file
+5Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
887 | 887 | |
888 | 888 | |
889 | 889 | |
| 890 | + |
| 891 | + |
| 892 | + |
| 893 | + |
| 894 | + |
890 | 895 | |
891 | 896 | |
892 | 897 | |
|
Collapse file
deps/v8/src/snapshot/snapshot-common.cc
Copy file name to clipboardExpand all lines: deps/v8/src/snapshot/snapshot-common.cc+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
229 | 229 | |
230 | 230 | |
231 | 231 | |
232 | | - |
| 232 | + |
| 233 | + |
| 234 | + |
233 | 235 | |
234 | 236 | |
235 | 237 | |
|
Collapse file
deps/v8/src/snapshot/snapshot.h
Copy file name to clipboardExpand all lines: deps/v8/src/snapshot/snapshot.h+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
87 | 87 | |
88 | 88 | |
89 | 89 | |
| 90 | + |
| 91 | + |
90 | 92 | |
91 | 93 | |
92 | 94 | |
93 | 95 | |
94 | | - |
95 | 96 | |
96 | 97 | |
97 | 98 | |
|
Collapse file
deps/v8/test/cctest/test-serialize.cc
Copy file name to clipboardExpand all lines: deps/v8/test/cctest/test-serialize.cc+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3709 | 3709 | |
3710 | 3710 | |
3711 | 3711 | |
| 3712 | + |
3712 | 3713 | |
3713 | 3714 | |
3714 | 3715 | |
| ||
3774 | 3775 | |
3775 | 3776 | |
3776 | 3777 | |
| 3778 | + |
3777 | 3779 | |
3778 | 3780 | |
3779 | 3781 | |
|
0 commit comments