Skip to content

Commit 15c91cb

Browse files
authored
Fixed deref probably null pointer
Pointer "control" doesn't check before usage in Replace function. There may be dereference null pointer.
1 parent 81e05e1 commit 15c91cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

deps/v8/src/compiler/graph-reducer.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ void GraphReducer::ReplaceWithValue(Node* node, Node* value, Node* effect,
263263
DCHECK(!user->IsDead());
264264
if (NodeProperties::IsControlEdge(edge)) {
265265
if (user->opcode() == IrOpcode::kIfSuccess) {
266+
DCHECK_NOT_NULL(control);
266267
Replace(user, control);
267268
} else if (user->opcode() == IrOpcode::kIfException) {
268269
DCHECK_NOT_NULL(dead_);

0 commit comments

Comments
 (0)