Commit c925fd0
[BugFix] Avoid UAF when resolving unified pipeline target node
- Store the unified pixel pipeline target as an element id instead of a raw Element pointer in PipelineOptions.
- Resolve the element lazily from the node manager and abort safely when the target node has already been removed, which prevents use-after-free during style resolution.
- Reset the cached target node id after resolve requests are cleared and keep the pipeline context unit test aligned with the new behavior.1 parent 6da2835 commit c925fd0
7 files changed
Lines changed: 25 additions & 10 deletions
File tree
- core
- public
- renderer
- dom
- fiber
- pipeline
- runtime/lepus/bindings
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| |||
179 | 181 | | |
180 | 182 | | |
181 | 183 | | |
182 | | - | |
| 184 | + | |
183 | 185 | | |
184 | 186 | | |
185 | 187 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
698 | 698 | | |
699 | 699 | | |
700 | 700 | | |
701 | | - | |
| 701 | + | |
| 702 | + | |
702 | 703 | | |
703 | 704 | | |
704 | 705 | | |
| |||
1364 | 1365 | | |
1365 | 1366 | | |
1366 | 1367 | | |
1367 | | - | |
1368 | | - | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
1369 | 1371 | | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
1370 | 1379 | | |
1371 | 1380 | | |
1372 | 1381 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
981 | 981 | | |
982 | 982 | | |
983 | 983 | | |
984 | | - | |
985 | | - | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
986 | 987 | | |
987 | 988 | | |
988 | 989 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3322 | 3322 | | |
3323 | 3323 | | |
3324 | 3324 | | |
3325 | | - | |
| 3325 | + | |
3326 | 3326 | | |
3327 | 3327 | | |
3328 | 3328 | | |
| |||
3709 | 3709 | | |
3710 | 3710 | | |
3711 | 3711 | | |
3712 | | - | |
| 3712 | + | |
3713 | 3713 | | |
3714 | 3714 | | |
3715 | 3715 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
| 77 | + | |
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5149 | 5149 | | |
5150 | 5150 | | |
5151 | 5151 | | |
5152 | | - | |
| 5152 | + | |
| 5153 | + | |
5153 | 5154 | | |
5154 | 5155 | | |
5155 | 5156 | | |
| |||
0 commit comments