Skip to content

Commit fb5747d

Browse files
authored
Merge pull request #8062 from The-OpenROAD-Project-staging/secure-jhkim-coverity
Fixed coverity CID 1620066.
2 parents 07d7191 + 1fb0ea1 commit fb5747d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/rsz/src/CloneMove.cc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,15 @@ bool CloneMove::doMove(const Path* drvr_path,
248248
// hierarchical wiring
249249

250250
odb::dbITerm* clone_output_iterm = db_network_->flatPin(clone_output_pin);
251+
if (clone_output_iterm == nullptr) {
252+
logger_->error(
253+
RSZ,
254+
100,
255+
"Cannot find output pin of the clone instance. Driver pin: {}, "
256+
"Clone output pin: {}",
257+
(drvr_pin) ? network_->pathName(drvr_pin) : "Null",
258+
(clone_output_pin) ? network_->pathName(clone_output_pin) : "Null");
259+
}
251260

252261
// Divide the list of pins in half and connect them to the new net we
253262
// created as part of gate cloning. Skip ports connected to the original net

0 commit comments

Comments
 (0)